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

x/deco/utils/promise.ts>Deferred

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Latest
interface Deferred
implements Promise<T>
import { type Deferred } from "https://deno.land/x/deco@1.107.0/utils/promise.ts";

Properties

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

Methods

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