Lines Matching refs:callbacks
36 registers callbacks to receive either a promise's eventual value or the reason
63 reject a promise with a *reason*. Resolving a promises triggers callbacks
64 registered with the promises's `then` method. These callbacks are triggered
72 all of the onFulfilled callbacks (resolving a promise with a rejected promise
73 will reject the promise and trigger the `$onRejected` callbacks).
90 // Resolving the promise triggers the $onFulfilled callbacks and outputs
128 When a promise is rejected, the `$onRejected` callbacks are invoked with the
146 `$onRejected` callbacks are invoked with the thrown exception as the reason.
180 does not return a rejected promise, downstream `$onFulfilled` callbacks are
362 // Fulfilled callbacks are immediately invoked.
379 // Rejected callbacks are immediately invoked.