Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

deferred

import { deferred } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.28.2/nats-base-client/internal_mod.ts";

Returns a Promise that has a resolve/reject methods that can be used to resolve and defer the Deferred.

function deferred<T>(): Deferred<T>;
§
deferred<T>(): Deferred<T>
[src]

§Type Parameters

§Return Type