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

ExtendablePromise

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

§Type Parameters

§
T = unknown
[src]

§Implements

§Constructors

§
new ExtendablePromise(f?: T | PromiseLike<T>)
[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<PromiseSettledResult<T>[] | TResult>
[src]
§
finally(onfinally?: (() => void) | null): Promise<PromiseSettledResult<T>[]>
[src]
§
then<TResult1 = PromiseSettledResult<T>[], TResult2 = never>(onfulfilled?: ((value: PromiseSettledResult<T>[]) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>
[src]
§
waitUntil(f?: T | PromiseLike<T>)
[src]