OpenPromise
This represents a Promise that has its resolve and reject functions bundled as methods attached to the promise object.
Properties
Functions
Properties
- Communicator.Util.OpenPromise.Promise
- Communicator.Util.OpenPromise.[Symbol.toStringTag]
Functions
Methods
catch
- Communicator.Util.OpenPromise.catch(onrejected)
Attaches a callback for only the rejection of the Promise.
- Arguments
onrejected (
{ }()) – The callback to execute when the Promise is rejected.
- Return type
Promise[{ }]- Returns
A Promise for the completion of the callback.
resolve
- Communicator.Util.OpenPromise.resolve(this, value)
- Arguments
this (
Communicator.Util.OpenPromise()) –value (
{ }()) –
- Return type
void
- Communicator.Util.OpenPromise.resolve(this)
- Arguments
this (
Communicator.Util.OpenPromise()) –
- Return type
void
then
- Communicator.Util.OpenPromise.then(onfulfilled, onrejected)
Attaches callbacks for the resolution and/or rejection of the Promise.
- Arguments
onfulfilled (
{ }()) – The callback to execute when the Promise is resolved.onrejected (
{ }()) – The callback to execute when the Promise is rejected.
- Return type
Promise[{ }]- Returns
A Promise for the completion of which ever callback is executed.