TrackedOpenPromise

class wv.Util.TrackedOpenPromise()

This represents a OpenPromise that tracks whether or not it has been resolved or rejected.

Properties

wv.Util.TrackedOpenPromise.[toStringTag]

readonly inherited

[toStringTag]: string
wv.Util.TrackedOpenPromise.state

readonly

state: PromiseState

This value is true if and only if this promise has been resolved or rejected.

Methods

wv.Util.TrackedOpenPromise.catch()

inherited

catch(onrejected: (None | (reason: any) => (TResult | PromiseLike))): Promise

Attaches a callback for only the rejection of the Promise.

Parameters

onrejected: (None | (reason: any) => (TResult | PromiseLike))

The callback to execute when the Promise is rejected.

Returns: Promise

A Promise for the completion of the callback.
wv.Util.TrackedOpenPromise.finally()

inherited

finally(onfinally: (None | () => void)): Promise

Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.

Parameters

onfinally: (None | () => void)

The callback to execute when the Promise is settled (fulfilled or rejected).

Returns: Promise

A Promise for the completion of the callback.
wv.Util.TrackedOpenPromise.reject()

inherited

reject(error: any): void

Parameters

error: any

Returns: void

wv.Util.TrackedOpenPromise.resolve()

inherited

resolve(this: OpenPromise<T>, value: (T | PromiseLike)): void

Parameters

this: OpenPromise<T>

value: (T | PromiseLike)

Returns: void

resolve(this: OpenPromise<void>): void

Parameters

this: OpenPromise<void>

Returns: void

wv.Util.TrackedOpenPromise.then()

inherited

then(onfulfilled: (None | (value: T) => (TResult1 | PromiseLike)), onrejected: (None | (reason: any) => (TResult2 | PromiseLike))): Promise

Attaches callbacks for the resolution and/or rejection of the Promise.

Parameters

onfulfilled: (None | (value: T) => (TResult1 | PromiseLike))

The callback to execute when the Promise is resolved.

onrejected: (None | (reason: any) => (TResult2 | PromiseLike))

The callback to execute when the Promise is rejected.

Returns: Promise

A Promise for the completion of which ever callback is executed.