Searched refs:promiseOrValue (Results 1 – 2 of 2) sorted by relevance
| /plugin/elasticsearch/vendor/react/promise/src/ |
| D | functions.php | 16 * @param mixed $promiseOrValue 19 function resolve($promiseOrValue = null) argument 21 if ($promiseOrValue instanceof ExtendedPromiseInterface) { 22 return $promiseOrValue; 27 if (\is_object($promiseOrValue) && \method_exists($promiseOrValue, 'then')) { 30 if (\method_exists($promiseOrValue, 'cancel')) { 31 $canceller = [$promiseOrValue, 'cancel']; 34 return new Promise(function ($resolve, $reject, $notify) use ($promiseOrValue) { 35 $promiseOrValue->then($resolve, $reject, $notify); 39 return new FulfilledPromise($promiseOrValue); [all …]
|
| /plugin/elasticsearch/vendor/react/promise/ |
| D | README.md | 472 $promise = React\Promise\resolve(mixed $promiseOrValue); 475 Creates a promise for the supplied `$promiseOrValue`. 477 If `$promiseOrValue` is a value, it will be the resolution value of the 480 If `$promiseOrValue` is a thenable (any object that provides a `then()` method), 483 If `$promiseOrValue` is a promise, it will be returned as is. 488 promise will be assimilated to a extended promise following `$promiseOrValue`. 493 $promise = React\Promise\reject(mixed $promiseOrValue); 496 Creates a rejected promise for the supplied `$promiseOrValue`. 498 If `$promiseOrValue` is a value, it will be the rejection value of the 501 If `$promiseOrValue` is a promise, its completion value will be the rejected
|