UnsafePromise
-
class
UnsafePromise
()
Properties
Properties
-
UnsafePromise.
Promise
Type: PromiseConstructor
-
UnsafePromise.[Symbol.
toStringTag]
Type: string
-
UnsafePromise.
isReady
Type: boolean
-
UnsafePromise.
readyPromise
Type: Promise <void>
-
UnsafePromise.
unsafeValue
Type: T
Methods
catch
-
UnsafePromise.
catch
([onrejected]) Arguments: - onrejected (
function | null()
) – optional
Return type: Promise <T | TResult>
-
UnsafePromise.
onrejected
(reason) Arguments: - reason (
any()
) – None
Return type: TResult | PromiseLike <TResult>
- reason (
- onrejected (
then
-
UnsafePromise.
then
([onfulfilled[, onrejected]]) Arguments: - onfulfilled (
function | null()
) – optional - onrejected (
function | null()
) – optional
Return type: Promise <TResult1 | TResult2>
-
UnsafePromise.
onfulfilled
(value) Arguments: - value (
T()
) – None
Return type: TResult1 | PromiseLike <TResult1>
- value (
-
onrejected
(reason) Arguments: - reason (
any()
) – None
Return type: TResult2 | PromiseLike <TResult2>
- reason (
- onfulfilled (