Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface Deferred
implements Promise<T>
import { type Deferred } from "https://deno.land/x/natsws@v1.29.2/src/mod.ts";

Properties

resolve: (value?: T | PromiseLike<T>) => void

Resolves the Deferred to a value T

reject: (reason?: any) => void

Rejects the Deferred