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

NameTypeDefault
$fiber Fiber required

Returns

mixed

Source

src/functions.php:60-63