Lines Matching refs:callbacks
51 registers callbacks to receive either a promise's eventual value or the reason
77 reject a promise with a *reason*. Resolving a promise triggers callbacks
78 registered with the promise's `then` method. These callbacks are triggered
85 all of the onFulfilled callbacks (resolving a promise with a rejected promise
86 will reject the promise and trigger the `$onRejected` callbacks).
103 // Resolving the promise triggers the $onFulfilled callbacks and outputs
140 When a promise is rejected, the `$onRejected` callbacks are invoked with the
158 `$onRejected` callbacks are invoked with the thrown exception as the reason.
192 does not return a rejected promise, downstream `$onFulfilled` callbacks are
373 // Fulfilled callbacks are immediately invoked.
390 // Rejected callbacks are immediately invoked.