Module

std/async/mod.ts>Deferred

Deno standard library
Go to Latest
interface Deferred
implements Promise<T>
import { type Deferred } from "https://dotland.deno.dev/std@0.116.0/async/mod.ts";

Properties

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

Methods

resolve(value?: T | PromiseLike<T>): void
reject(reason?: any): void
import Deferred
import { Deferred } from "https://dotland.deno.dev/std@0.116.0/async/mod.ts";