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

std/util/async.ts>Deferred

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface Deferred
implements Promise<T>
import { type Deferred } from "https://deno.land/std@v0.35.0/util/async.ts";

Properties

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