PHP Class Icicle\Coroutine\Coroutine

Inheritance: extends Promise, implements Icicle\Coroutine\CoroutineInterface
Datei anzeigen Open project: icicleio/icicle Class Usage Examples

Public Methods

Method Description
__construct ( Generator $generator )
cancel ( Throwable $reason = null )

Private Methods

Method Description
next ( mixed $yielded ) Examines the value yielded from the generator and prepares the next step in interation.

Method Details

__construct() public method

public __construct ( Generator $generator )
$generator Generator

cancel() public method

public cancel ( Throwable $reason = null )
$reason Throwable