public function cancelTimer(\React\EventLoop\Timer\TimerInterface $timer) { $this->loop->cancelTimer($timer->getActualTimer()); }