mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 11:57:10 +00:00
Merge pull request #2352 from PEMapModder/patch-3
Added internal use warning for TaskHandler::cancel()
This commit is contained in:
commit
811970e58d
@ -127,6 +127,10 @@ class TaskHandler{
|
|||||||
return $this->period;
|
return $this->period;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* WARNING: Do not use this, it's only for internal use.
|
||||||
|
* Changes to this function won't be recorded on the version.
|
||||||
|
*/
|
||||||
public function cancel(){
|
public function cancel(){
|
||||||
if(!$this->isCancelled()){
|
if(!$this->isCancelled()){
|
||||||
$this->task->onCancel();
|
$this->task->onCancel();
|
||||||
@ -156,4 +160,4 @@ class TaskHandler{
|
|||||||
|
|
||||||
return get_class($this->task);
|
return get_class($this->task);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user