Swoole\Coroutine::list()

Declaration

<?php
Swoole\Coroutine::list()

Parameters

Return

Description

Get all the coroutine IDs of current process.

Example

<?php
$list = Swoole\Coroutine::list();
foreach($list as $cid) {
    var_dump(Coroutine::getBackTrace($cid));
}