Swoole\Coroutine::list()

4.x is outdated, please check the latest version 22.x


Latest version: pecl install openswoole-22.1.2

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));
}
Last updated on August 31, 2022