Kraken\Loop\Timer\TimerBox::remove PHP Method

remove() public method

public remove ( Kraken\Loop\Timer\TimerInterface $timer )
$timer Kraken\Loop\Timer\TimerInterface
    public function remove(TimerInterface $timer)
    {
        $this->timers->detach($timer);
    }

Usage Example

Example #1
0
 /**
  * @override
  * @inheritDoc
  */
 public function cancelTimer(TimerInterface $timer)
 {
     if (isset($this->timers)) {
         $this->timers->remove($timer);
     }
 }