Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/proc/legacy/deps.ts>Deferred

A better way to work with processes in Deno.
Go to Latest
interface Deferred
implements Promise<T>
Deprecated
Deprecated

(will be removed in 0.209.0) Use Promise.withResolvers instead.

import { type Deferred } from "https://deno.land/x/proc@0.21.8/legacy/deps.ts";

Properties

readonly
state: "pending" | "fulfilled" | "rejected"

Methods

resolve(value?: T | PromiseLike<T>): void
reject(reason?: any): void