Méthode | Description | |
---|---|---|
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 | |
Résultat | React\Promise\PromiseInterface |
public createPromiseAll ( mixed $promisesOrValues ) : mixed | ||
$promisesOrValues | mixed | Promises or values. |
Résultat | mixed | a Promise |
public createRejectedPromise ( $reason ) : |
||
Résultat |
public createResolvedPromise ( $promiseOrValue = null ) : |
||
Résultat |