Returns an idle Promise instance that is already rejected with the given reason.
Any chained operations will execute asynchronously using the orequestIdleCallback API
(if available) with the optional provided timeout value to schedule when the chained items will
be executed. (eg. catch(); finally()).
Type Parameters
T = unknown
Parameters
reason: any
The rejection reason
Optionaltimeout: number
Optional timeout to wait before processing the items, defaults to zero.
Returns an idle Promise instance that is already rejected with the given reason. Any chained operations will execute asynchronously using the o
requestIdleCallback
API (if available) with the optional provided timeout value to schedule when the chained items will be executed. (eg.catch()
;finally()
).