企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## Coroutine::exist 判断指定协程是否存在 ## API ~~~ function Coroutine::exist() : bool ~~~ ## 例子 ~~~ go(function () { go(function () { go(function () { Co::sleep(0.001); var_dump(Co::exists(Co::getPcid())); // 1: true }); go(function () { Co::sleep(0.003); var_dump(Co::exists(Co::getPcid())); // 3: false }); Co::sleep(0.002); var_dump(Co::exists(Co::getPcid())); // 2: false }); }); ~~~