Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/live/utils/promise.ts>Deferred

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Very Popular
Go to Latest
interface Deferred
implements Promise<T>
import { type Deferred } from "https://deno.land/x/live@1.63.12/utils/promise.ts";

Properties

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

Methods

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