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

std/async/mod.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>
Re-export
import { type Deferred } from "https://deno.land/std@0.66.0/async/mod.ts";

Properties

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