Lines Matching refs:is

23 - Promise resolution and chaining is handled iteratively, allowing for
35 primary way of interacting with a promise is through its `then` method, which
84 // This then is executed after the first then and receives the value
98 Promises can be chained one after the other. Each then in the chain is a new
99 promise. The return value of a promise is what's forwarded to the next
128 When a promise is rejected, the `$onRejected` callbacks are invoked with the
145 If an exception is thrown in an `$onRejected` callback, subsequent
179 If an exception is not thrown in a `$onRejected` callback and the callback
201 method. When creating a promise, you can provide a wait function that is used
202 to synchronously force a promise to complete. When a wait function is invoked
203 it is expected to deliver a value to the promise or reject the promise. If the
204 wait function does not deliver a value, then an exception is thrown. The wait
205 function provided to a promise constructor is invoked when the `wait` function
206 of the promise is called.
217 If an exception is encountered while invoking the wait function of a promise,
218 the promise is rejected with the exception and the exception is thrown.
232 $promise = new Promise(function () { die('this is not called!'); });
238 the rejection reason is an instance of `\Exception` the reason is thrown.
239 Otherwise, a `GuzzleHttp\Promise\RejectionException` is thrown and the reason
255 promise if it was fulfilled or throw an exception if it was rejected). This is
271 upon until the unwrapped value is not a promise. This means that if you resolve
275 **Note**: when you do not unwrap the promise, no value is returned.
292 `$cancelFn`. `$waitFn` is a function that is invoked with no arguments and is
293 expected to resolve the promise. `$cancelFn` is a function with no arguments
294 that is expected to cancel the computation of a promise. It is invoked when the
295 `cancel()` method of a promise is called.
321 …g to the return value of the callback if it is called, or to its original fulfillment value if the…
327 `$unwrap` controls whether or not the value of the promise is returned for a
328 fulfilled promise or if an exception is thrown if the promise is rejected.
329 This is set to `true` by default.
390 for example. When a foreign promise is returned inside of a then method
398 // Create a Guzzle promise that is fulfilled with a React promise.
407 Please note that wait and cancel chaining is no longer possible when forwarding
443 ## Promise resolution and chaining is handled iteratively
470 When a promise is fulfilled or rejected with a non-promise value, the promise
474 When a promise is resolved with another promise, the original promise transfers
475 all of its pending handlers to the new promise. When the new promise is
480 ## A promise is the deferred.
484 the computation. This is a nice separation of computation and delivery because
489 iteratively is that you need to be able for one promise to reach into the state
491 this without making the handlers of a promise publicly mutable, a promise is
495 deferred, it is a small price to pay for keeping the stack size constant.
500 // The promise is the deferred value, so you can deliver a value to it.
541 Guzzle is made available under the MIT License (MIT). Please see [License File](LICENSE) for more i…