Searched refs:promiseOrValue (Results 1 – 2 of 2) sorted by relevance
6 * Creates a promise for the supplied `$promiseOrValue`.8 * If `$promiseOrValue` is a value, it will be the resolution value of the11 * 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 $promiseOrValue19 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...]
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 the480 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 the501 If `$promiseOrValue` i[all...]