mini\Async\AsyncInterface::go()
Method
public
abstract
Signature
public abstract function go(Closure $coroutine, array $args = array (
), ?object $context = NULL): Fiber
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$coroutine |
Closure |
required | Documentation missing |
$args |
array |
array (
)
|
Documentation missing |
$context |
?object |
NULL
|
Documentation missing |
Returns
Fiber
Documentation
Spawn a new coroutine (fiber)
Returns immediately with a Fiber handle. The fiber won't execute until something drives the event loop (await, sleep, awaitStream, etc.)