Метод | Описание | |
---|---|---|
createPromise ( callable $resolver ) : React\Promise\PromiseInterface | ||
createPromiseAll ( mixed $promisesOrValues ) : mixed | Given an array of promises, return a promise that is fulfilled when all the items in the array are fulfilled. | |
createRejectedPromise ( $reason ) : |
||
createResolvedPromise ( $promiseOrValue = null ) : |
||
isPromise ( mixed $value ) : boolean | Return true if value is promise |
public createPromise ( callable $resolver ) : React\Promise\PromiseInterface | ||
$resolver | callable | |
Результат | React\Promise\PromiseInterface |
public createPromiseAll ( mixed $promisesOrValues ) : mixed | ||
$promisesOrValues | mixed | Promises or values. |
Результат | mixed | a Promise |
public createRejectedPromise ( $reason ) : |
||
Результат |
public createResolvedPromise ( $promiseOrValue = null ) : |
||
Результат |