Skip to main content
Module

x/extendable_promise/index.ts>ExtendablePromise

A promise that can be delayed (extended) via repeated calls to waitUntil.
Latest
class ExtendablePromise
implements Promise<PromiseSettledResult<T>[]>
import { ExtendablePromise } from "https://deno.land/x/extendable_promise@v0.2.0-pre.11/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>)