Метод | Описание | |
---|---|---|
all ( mixed $value ) : Generator | Wrap value with the Generator that returns the all results. | |
any ( mixed $value ) : Generator | Wrap value with the Generator that returns the first successful result. | |
async ( mixed $value, mixed $throw = null ) | Value is recursively resolved, but we never wait it. | |
getDefaultOptions ( ) : array | Get CoOption default as array. | |
isRunning ( ) : boolean | Return if Co::wait() is running. | |
race ( mixed $value ) : Generator | Wrap value with the Generator that returns the first result. | |
setDefaultOptions ( array $options ) | Overwrite CoOption default. | |
wait ( mixed $value, array $options = [] ) : mixed | Wait until value is recursively resolved to return it. |
Метод | Описание | |
---|---|---|
__construct ( ) | External instantiation is forbidden. | |
getRootGenerator ( mixed $throw, mixed $value, &$return ) | Return root wrapper generator. | |
processGeneratorContainer ( |
Handle resolving generators. | |
processGeneratorContainerDone ( |
Handle resolving generators already done. | |
processGeneratorContainerRunning ( |
Handle resolving generators still running. | |
promiseAll ( array $yieldables, boolean $throw_acceptable ) : React\Promise\PromiseInterface | Promise all changes in yieldables are prepared. | |
start ( mixed $value, boolean $wait = true, mixed $throw = null ) | Start resovling. |
public static getDefaultOptions ( ) : array | ||
Результат | array |
public static setDefaultOptions ( array $options ) | ||
$options | array |