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

Properties

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

Resolves the Deferred to a value T

reject: (reason?: any) => void

Rejects the Deferred