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

std/async/deferred.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@0.66.0/async/deferred.ts";

Properties

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