Skip to main content
Module

x/servest/vendor/https/deno.land/std/async/mod.ts>deferred

🌾A progressive http server for Deno🌾
Latest
function deferred
Re-export
import { deferred } from "https://deno.land/x/servest@v1.3.4/vendor/https/deno.land/std/async/mod.ts";

Creates a Promise with the reject and resolve functions placed as methods on the promise object itself. It allows you to do:

const p = deferred<number>();
// ...
p.resolve(42);