mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +00:00
Added internal use warning for TaskHandler::cancel()
It is confusing for some developers to whether to use this function or `ServerScheduler::cancelTask($taskId)`. It is better to add warning in the documentation.
This commit is contained in:
parent
1963d8fde0
commit
941961f5ef
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user