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

NameTypeDefault
$coroutine Closure required
$args variadic mixed optional

Returns

mixed

Source

src/functions.php:31-34