phasync\run()
function
Documentation
Run a coroutine synchronously, and await the result. You can nest calls to run() within other coroutines.
Signature
function run(Closure $coroutine, mixed ...$args): mixed
Parameters
| Name | Type | Default |
|---|---|---|
$coroutine
|
Closure |
required |
$args
variadic
|
mixed |
optional |
Returns
mixed