phasync\go()
function
Documentation
Run a coroutine asynchronously. The return value is a Fiber
instance. You can use await() to resolve the return value.
Signature
function go(Closure $coroutine, mixed ...$args): Fiber
Parameters
| Name | Type | Default |
|---|---|---|
$coroutine
|
Closure |
required |
$args
variadic
|
mixed |
optional |
Returns
Fiber