Kraken\Channel\Channel::registerPeriodicTimers PHP Метод

registerPeriodicTimers() приватный Метод

    private function registerPeriodicTimers()
    {
        $this->reqsHelperTimer = $this->getLoop()->addPeriodicTimer(0.1, function () {
            $this->expireRequests();
        });
        $this->repsHelperTimer = $this->getLoop()->addPeriodicTimer(0.1, function () {
            $this->expireResponses();
            $unfinished = $this->unfinishedResponses();
            foreach ($unfinished as $response) {
                $protocol = new Protocol('', $response->getPid(), '', $response->getAlias(), '', '', $this->getTime());
                $response = new Response($this, $protocol, new TaskIncompleteException("Task unfinished."));
                $response->call();
            }
        });
    }