Method
phasync::isRunning
Returns true while a phasync::run is in progress, and false otherwise.
Description#
public static phasync::isRunning(): boolReturn values#
bool
Examples#
var_dump(phasync::isRunning()); // false
phasync::run(fn () => var_dump(phasync::isRunning())); // trueSee also#
phasync::getFiberReturns the running coroutine.