<?php
Swoole\Coroutine::exists (int $cid)
coroutine ID.
if success, it returns TRUE, otherwise it returns FALSE.
Check if a coroutine is exists by coroutine ID.
<?php
Co\run(function () {
echo Swoole\Coroutine::exists(Swoole\Coroutine::getCid());
});