Skip to main content
Module

x/earthstar_streaming_rpc/mod.ts>Deferred

Like JSON-RPC, but supports streaming.
Latest
interface Deferred
Re-export
import { type Deferred } from "https://deno.land/x/earthstar_streaming_rpc@v5.0.1/mod.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>