Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dtils/deps.ts>asyncUtils.Deferred

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

Properties

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

Methods

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