phasync\idle() function

Documentation

Pause the coroutine until there are no coroutines that will run immediately, effectively waiting until the entire application is waiting for IO operations or timers to complete.

Signature

function idle(?float $timeout = NULL): void

Parameters

NameTypeDefault
$timeout ?float NULL

Returns

void

Source

src/functions.php:82-85