<?php
Swoole\Coroutine\System::wait(float $timeout = -1): int | false
Waiting timeout.
Wait for the I/O event witin coroutine context.
<?php
(new Swoole\Process(function () {
echo "child process start\n";
sleep(1);
echo "child process exit\n";
}))->start();
Co\run(function () {
$info = Swoole\Coroutine\System::wait(5);
var_dump($info);
});