TrackedOpenPromise
-
class
wv.Util.TrackedOpenPromise() This represents a
OpenPromisethat 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: PromiseStateThis value is
trueif and only if this promise has been resolved or rejected.
Methods
-
wv.Util.TrackedOpenPromise.catch() inherited
catch(onrejected: (None | (reason: any) => (TResult | PromiseLike))): PromiseAttaches 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)): PromiseAttaches 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): voidParameters
error: anyReturns: void
-
wv.Util.TrackedOpenPromise.resolve() inherited
resolve(this:OpenPromise<T>, value: (T | PromiseLike)): voidParameters
this:
OpenPromise<T>value: (T | PromiseLike)
Returns: void
resolve(this:OpenPromise<void>): voidParameters
this:OpenPromise<void>Returns: void
-
wv.Util.TrackedOpenPromise.then() inherited
then(onfulfilled: (None | (value: T) => (TResult1 | PromiseLike)), onrejected: (None | (reason: any) => (TResult2 | PromiseLike))): PromiseAttaches 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.