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

ResolvablePromise

import { ResolvablePromise } from "https://raw.githubusercontent.com/worker-tools/resolvable-promise/master/index.ts";
class ResolvablePromise<T> implements Promise<T> {
constructor(init?: ResolvablePromiseInit<T> | null);
get settled();
readonly [Symbol.toStringTag]: string;
 
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
finally(onfinally?: (() => void) | null): Promise<T>;
reject(reason?: any);
resolve(x: T | PromiseLike<T>);
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
}

§Type Parameters

§Implements

§
Promise<T>
[src]

§Constructors

§
new ResolvablePromise(init?: ResolvablePromiseInit<T> | null)
[src]

§Properties

§
settled readonly deprecated
[src]
@deprecated

Name of this property might change

§
[Symbol.toStringTag]: string
[src]

§Methods

§
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>
[src]
§
finally(onfinally?: (() => void) | null): Promise<T>
[src]
§
reject(reason?: any)
[src]
§
resolve(x: T | PromiseLike<T>)
[src]
§
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>
[src]