cancel() public method

Cancel timer and unregister it from loop.
public cancel ( )
Beispiel #1
0
 /**
  * @override
  * @inheritDoc
  */
 public function cancel()
 {
     $this->timer->cancel();
 }
Beispiel #2
0
 /**
  * Stop time register.
  *
  * @see ZmqModel::startTimeRegister
  */
 private function stopTimeRegister()
 {
     if ($this->rTimer !== null) {
         $this->rTimer->cancel();
         $this->rTimer = null;
         $this->connectionPool->resetNow();
     }
 }
Beispiel #3
0
 /**
  *
  */
 private function unregisterPeriodicTimers()
 {
     if ($this->reqsHelperTimer !== null) {
         $this->reqsHelperTimer->cancel();
     }
     if ($this->repsHelperTimer !== null) {
         $this->repsHelperTimer->cancel();
     }
 }