Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function deferred
import { deferred } from "https://deno.land/x/natsws@v1.28.0/src/nats-base-client.ts";

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