pocketmine\scheduler\TaskHandler::cancel PHP Method

cancel() public method

Changes to this function won't be recorded on the version.
public cancel ( )
    public function cancel()
    {
        if (!$this->isCancelled()) {
            $this->task->onCancel();
        }
        $this->remove();
    }

Usage Example

 public function setUpdateInterval($interval)
 {
     $this->handler->cancel();
     $this->handler = $this->getOwner()->getServer()->getScheduler()->scheduleRepeatingTask($this, $interval);
 }