Lines Matching refs:promise
33 $promise->otherwise(function (OverflowException|UnderflowException $e) {
42 $promise->otherwise(function (OverflowException&CacheException $e) {
66 * Fix: Fix checking whether cancellable promise is an object and avoid possible warning.
94 binding to promise, clean up canceller function reference when they are no longer
119 * Fix circular references when resolving with a promise which follows
125 output promise resolves. This was introduced in 42d86b7 (PR #36, released
126 in [v2.3.0](https://github.com/reactphp/promise/releases/tag/v2.3.0)) and
136 foreach ($promises as $promise) {
137 if ($promise instanceof \React\Promise\CancellablePromiseInterface) {
138 $promise->cancel();
145 * Fix circular references when resolving a promise with itself (#71).
156 promise that follows the state of this thenable (#52).
162 * Allow cancellation of promises returned by functions working on promise
172 * Fix stack error when resolving a promise in its own fulfillment or
195 compliant with other promise libraries and especially with the new upcoming
207 when initialized with a promise instead of a value/reason.
209 a promise.