The promise API implemented by this library.
Cancels the pending request represented by the Promise, and triggers the error callback if the promised event has not yet occurred.
Adds event listeners for particular events.
Called when the promised event successfully occurs.
Called when the promised event fails to occur. Could be an IError or an IJSError.
Called to indicate that the promised event is making progress toward completion.