Menu

Reference / Async

dump()

function
function dump(): string

A snapshot of the engine as text.

Lists every live task with its id, label, where it was spawned and what it is parked on (an fd and direction, a timer, a channel, a select), plus the live, io-parked, timer and ready counts. The running task is marked *. A DeadlockException embeds the same report.

async: 3 live task(s), 2 parked on I/O, 1 on timers, 0 ready
* #1 at server.php:14 ready
  #4 "http" at server.php:31 io-read fd=9 +deadline awaited
  #7 near server.php:44 timer

Returns

string — the report, or '' when no scheduler is running

See also: dumpOn, watchdog, Task::describe

View source