PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\scheduler\ServerScheduler Class Reference
+ Collaboration diagram for pocketmine\scheduler\ServerScheduler:

Public Member Functions

 scheduleTask (Task $task)
 
 scheduleAsyncTask (AsyncTask $task)
 
 scheduleDelayedTask (Task $task, $delay)
 
 scheduleRepeatingTask (Task $task, $period)
 
 scheduleDelayedRepeatingTask (Task $task, $delay, $period)
 
 cancelTask ($taskId)
 
 cancelTasks (Plugin $plugin)
 
 cancelAllTasks ()
 
 isQueued ($taskId)
 
 collectAsyncTask (AsyncTask $task)
 

Static Public Attributes

static $WORKERS = 4
 

Protected Attributes

 $queue
 
 $tasks = []
 
 $asyncPool
 
 $asyncTaskStorage = []
 
 $asyncTasks = 0
 
 $currentTick = 0
 

Detailed Description

Definition at line 33 of file ServerScheduler.php.

Member Function Documentation

pocketmine\scheduler\ServerScheduler::cancelTask (   $taskId)
Parameters
int$taskId

Definition at line 122 of file ServerScheduler.php.

pocketmine\scheduler\ServerScheduler::cancelTasks ( Plugin  $plugin)
Parameters
Plugin$plugin

Definition at line 132 of file ServerScheduler.php.

References pocketmine\scheduler\PluginTask\getOwner().

+ Here is the call graph for this function:

pocketmine\scheduler\ServerScheduler::isQueued (   $taskId)
Parameters
int$taskId
Returns
bool

Definition at line 159 of file ServerScheduler.php.

pocketmine\scheduler\ServerScheduler::scheduleAsyncTask ( AsyncTask  $task)

Submits an asynchronous task to the Worker Pool

Parameters
AsyncTask$task
Returns
void

Definition at line 80 of file ServerScheduler.php.

pocketmine\scheduler\ServerScheduler::scheduleDelayedRepeatingTask ( Task  $task,
  $delay,
  $period 
)
Parameters
Task$task
int$delay
int$period
Returns
null|TaskHandler

Definition at line 115 of file ServerScheduler.php.

pocketmine\scheduler\ServerScheduler::scheduleDelayedTask ( Task  $task,
  $delay 
)
Parameters
Task$task
int$delay
Returns
null|TaskHandler

Definition at line 94 of file ServerScheduler.php.

pocketmine\scheduler\ServerScheduler::scheduleRepeatingTask ( Task  $task,
  $period 
)
Parameters
Task$task
int$period
Returns
null|TaskHandler

Definition at line 104 of file ServerScheduler.php.

pocketmine\scheduler\ServerScheduler::scheduleTask ( Task  $task)
Parameters
Task$task
Returns
null|TaskHandler

Definition at line 69 of file ServerScheduler.php.


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