cancelTimer() 공개 메소드

Cancels a specified timer created using addTimer() or addPeriodicTimer(). Proxies to the cancelTimer() implementation of the event loop implementation returned by getLoop().
public cancelTimer ( React\EventLoop\Timer\TimerInterface $timer )
$timer React\EventLoop\Timer\TimerInterface Timer returned by addTimer() or addPeriodicTimer()
 /**
  * Tests cancelTimer().
  */
 public function testCancelTimer()
 {
     $timer = $this->getMockTimer();
     $loop = $this->getMockLoop();
     Phake::when($this->client)->getLoop()->thenReturn($loop);
     $this->client->cancelTimer($timer);
     Phake::verify($loop)->cancelTimer($timer);
 }