A promise wrapper utility which returns a new promise that will resolve when the next event is raised.
Readonly
Cancels the promise and unsubscribes from the event signal. Cancellation is done by fulfilling with undefined.
Promise-like interface catch.
Optional
Called if the promise rejects
Promise-like interface finally.
Called when the promise resolves
Promise-like interface then.
Called if the promise fulfills
A promise wrapper utility which returns a new promise that will resolve when the next event is raised.