PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
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

@phpstan-return TaskHandler<static>|null

Definition at line 35 of file Task.php.

Referenced by pocketmine\scheduler\TaskHandler\__construct().

+ Here is the caller graph for this function:

◆ getName()

pocketmine\scheduler\Task::getName ( )

Definition at line 39 of file Task.php.

◆ onCancel()

pocketmine\scheduler\Task::onCancel ( )

Actions to execute if the Task is cancelled

Definition at line 62 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

@phpstan-param TaskHandler<static>|null $taskHandler

Definition at line 46 of file Task.php.


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