Home
last modified time | relevance | path

Searched refs:promiseOrValue (Results 1 – 2 of 2) sorted by relevance

/plugin/elasticsearch/vendor/react/promise/src/
H A Dfunctions.php6 * Creates a promise for the supplied `$promiseOrValue`.
8 * If `$promiseOrValue` is a value, it will be the resolution value of the
11 * If `$promiseOrValue` is a thenable (any object that provides a `then()` method),
14 * If `$promiseOrValue` is a promise, it will be returned as is.
16 * @param mixed $promiseOrValue
19 function resolve($promiseOrValue = null) argument
21 if ($promiseOrValue instanceof ExtendedPromiseInterface) {
22 return $promiseOrValue;
26 // class autoloaders if $promiseOrValue is a string.
27 if (\is_object($promiseOrValue)
58 reject($promiseOrValue = null) global() argument
[all...]
/plugin/elasticsearch/vendor/react/promise/
H A DREADME.md472 $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` i
[all...]