phasync\await()
function
Documentation
Wait for a coroutine to complete and return the result. If exceptions are thrown in the coroutine, they will be thrown here.
Signature
function await(Fiber $fiber): mixed
Parameters
| Name | Type | Default |
|---|---|---|
$fiber
|
Fiber |
required |
Returns
mixed