Skip to main content
Module

x/earthstar/src/test/rpc-dep-node.ts>Deferred

A specification and Javascript library for building online tools you can truly call your own.
Go to Latest
interface Deferred
Re-export
import { type Deferred } from "https://deno.land/x/earthstar@v9.3.3/src/test/rpc-dep-node.ts";

A Deferred is a Promise and its resolve and reject methods.

Normally you can't resolve or reject a Promise from the outside; this lets you do that.

Properties

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