Skip to main content
Module

x/blocks/utils/promise.ts>Deferred

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

Properties

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

Methods

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