|
PocketMine-MP 5.37.4 git-dbb0a3db4df7e1ea8e62dc67aa0a6030f2ac20e4
|
Inheritance diagram for pocketmine\scheduler\ClosureTask:
Collaboration diagram for pocketmine\scheduler\ClosureTask:Public Member Functions | |
| __construct (private \Closure $closure) | |
| getHandler () | |
| getName () | |
| onCancel () | |
| onRun () | |
| setHandler (?TaskHandler $taskHandler) | |
Task implementation which allows closures to be called by a scheduler.
Example usage:
Definition at line 39 of file ClosureTask.php.
| pocketmine\scheduler\ClosureTask::__construct | ( | private \Closure | $closure | ) |
| \Closure | $closure | Must accept zero parameters @phpstan-param \Closure() : void $closure |
Definition at line 44 of file ClosureTask.php.
|
finalinherited |
@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:| pocketmine\scheduler\ClosureTask::getName | ( | ) |
Reimplemented from pocketmine\scheduler\Task.
Definition at line 50 of file ClosureTask.php.
|
inherited |
| pocketmine\scheduler\ClosureTask::onRun | ( | ) |
Actions to execute when run
| CancelTaskException |
Reimplemented from pocketmine\scheduler\Task.
Definition at line 54 of file ClosureTask.php.
|
finalinherited |