Skip to main content
Module

x/shed/index.ts>ExtendablePromise

All Worker Tools under a single roof
Latest
class ExtendablePromise
implements Promise<PromiseSettledResult<T>[]>
import { ExtendablePromise } from "https://deno.land/x/shed@v0.1.0-pre.10/index.ts";

Constructors

new
ExtendablePromise(f?: T | PromiseLike<T>)

Type Parameters

optional
T = unknown

Properties

deprecated
readonly
settled
readonly
[Symbol.toStringTag]: string

Methods

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>)