Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface Deferred
implements Promise<T>
import { type Deferred } from "https://deno.land/x/denogres@v4.0.1/vendor/deno.land/std@0.160.0/async/deferred.ts";

Properties

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

Methods

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