Lines Matching refs:promiseOrValue
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