DeprecatedPromise
- class Communicator.DeprecatedPromise()
A promise that can be safely ignored. Functions that return this type were once asynchronous but are now synchronous.
Properties
Properties
- DeprecatedPromise.Promise
- Type
PromiseConstructor
- DeprecatedPromise.[Symbol.toStringTag]
- Type
string
Methods
catch
- DeprecatedPromise.catch([onrejected])
Attaches a callback for only the rejection of the Promise.
- Arguments
onrejected (
function | null()
) – optional The callback to execute when the Promise is rejected.
- Return type
Promise <void | TResult>
- Returns
A Promise for the completion of the callback.
- DeprecatedPromise.onrejected(reason)
- Arguments
reason (
any()
) –
- Return type
TResult | PromiseLike <TResult>
then
- DeprecatedPromise.then([onfulfilled[, onrejected]])
Attaches callbacks for the resolution and/or rejection of the Promise.
- Arguments
onfulfilled (
function | null()
) – optional The callback to execute when the Promise is resolved.onrejected (
function | null()
) – optional The callback to execute when the Promise is rejected.
- Return type
Promise <TResult1 | TResult2>
- Returns
A Promise for the completion of which ever callback is executed.
- DeprecatedPromise.onfulfilled(value)
- Arguments
value (
void()
) –
- Return type
TResult1 | PromiseLike <TResult1>
- Communicator.onrejected(reason)
- Arguments
reason (
any()
) –
- Return type
TResult2 | PromiseLike <TResult2>