Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/async_channels/src/internal/utils.ts>deferPromise

Inspired by Go & Clojure Channels, async_channels provides channels as an asynchronous communication method between asynchronous functions.
Latest
function deferPromise
import { deferPromise } from "https://deno.land/x/async_channels@v1.0.0-rc8/src/internal/utils.ts";

Returns

[Promise<T>, (_: T | PromiseLike<T>) => void, (_?: unknown) => void]