DeprecatedPromise

class Communicator.DeprecatedPromise()

A promise that can be safely ignored. Functions that return this type were once asynchronous but are now synchronous.

Properties

Methods


Properties

Communicator.DeprecatedPromise.Promise
Communicator.DeprecatedPromise.[Symbol.toStringTag]

Methods

catch

Communicator.DeprecatedPromise.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.

then

Communicator.DeprecatedPromise.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.