Creates a new unresolved AsyncWrapper
Creates a new AsyncWrapper
can be a promise or a value
Creates a new AsyncWrapper
Creates a new AsyncWrapper
Creates a new AsyncWrapper
Creates a new AsyncWrapper
Optional promiseOrValueOrFactory: Awaitable<T> | (() => Awaitable<T>)can be a promise or a value factory, a value or a promise that will be invoked immediately
Optional callback: ((asyncWrapper) => void)the callback that should be applied after the promise is resolved
Private #awaitablePrivate Readonly #callbackPrivate #completePrivate Readonly #completePrivate #errorPrivate Optional #promisePrivate #promisePrivate #successPrivate #valuereturns true when the promise is complete, even if it errored
Event to be fired when the internal promise has completed
returns the error if the promise failed
Return the internal promise that is waiting for the orginal one to complete
returns true if the promise completed successfully
returns the value of the promise
Generated using TypeDoc
The AsyncWrapper is provided to monitor the state of a promise. You can use this to provide state feedback to the user of an awaitable method.