$time_interval = 2;
$timer_id = Timer::add($time_interval, function () {
Coroutine::runCoroutine::getCurrent()->getId(), ' ', date('H:i:s'), PHP_EOL;
});
});
};
// RunEmitted when data received
$http_worker->onMessage = function ($connection, $request) {
Coroutine::run$start . ', now: ' . date('Y-m-d H:i:s'));
});
};
// Run all workers
$http_worker::$eventLoopClass{
$t = (int) ($delay * 1000);
$t = max($t, 1);
$coroutine = Coroutine::run