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

x/dtils/deps.ts>asyncUtils.Deferred

The best unofficial library of utilities for Deno applications
Latest
interface asyncUtils.Deferred
implements Promise<T>
Re-export
import { type asyncUtils } from "https://deno.land/x/dtils@2.6.1/deps.ts";
const { Deferred } = asyncUtils;

Properties

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

Methods

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