public function poll($redis) { if (!$redis) { return; } list(, $chan, $msg) = $redis->result; $this->pollMode = json_decode($msg, true); Timer::setTimeout($this->finishTimer); $this->flush(); }