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

x/earthstar/deps.ts>Deferred

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
interface Deferred
implements Promise<T>
import { type Deferred } from "https://deno.land/x/earthstar@v10.0.0-alpha.4/deps.ts";

Properties

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

Methods

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