PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
pocketmine\scheduler\Task Class Reference
+ Inheritance diagram for pocketmine\scheduler\Task:
+ Collaboration diagram for pocketmine\scheduler\Task:

Public Member Functions

 getHandler ()
 
 getName ()
 
 onCancel ()
 
 onRun ()
 
 setHandler (?TaskHandler $taskHandler)
 

Detailed Description

Definition at line 28 of file Task.php.

Member Function Documentation

◆ getHandler()

pocketmine\scheduler\Task::getHandler ( )
final

Definition at line 31 of file Task.php.

◆ getName()

pocketmine\scheduler\Task::getName ( )

Definition at line 35 of file Task.php.

◆ onCancel()

pocketmine\scheduler\Task::onCancel ( )

Actions to execute if the Task is cancelled

Definition at line 55 of file Task.php.

◆ onRun()

pocketmine\scheduler\Task::onRun ( )
abstract

Actions to execute when run

Exceptions
CancelTaskException

Reimplemented in pocketmine\scheduler\ClosureTask.

◆ setHandler()

pocketmine\scheduler\Task::setHandler ( ?TaskHandler $taskHandler)
final

Definition at line 39 of file Task.php.


The documentation for this class was generated from the following file: