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

Deferred

import type { Deferred } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/promise.ts";

A Promise with the inner resolve function hoisted and attached to itself.

type Deferred<A> = Promise<A> & {
readonly resolve: (a: A | PromiseLike<A>) => void;
}
;

§Type Parameters

§Type

§
Promise<A> & {
readonly resolve: (a: A | PromiseLike<A>) => void;
}
[src]