Property | Type | Description | |
---|---|---|---|
$WORKERS |
Property | Type | Description | |
---|---|---|---|
$asyncPool | |||
$currentTick | integer | ||
$queue | ReversePriorityQueue |
||
$tasks |
Method | Description | |
---|---|---|
__construct ( ) | ||
cancelAllTasks ( ) | ||
cancelTask ( integer $taskId ) | ||
cancelTasks ( pocketmine\plugin\Plugin $plugin ) | ||
getAsyncTaskPoolSize ( ) | ||
increaseAsyncTaskPoolSize ( $newSize ) | ||
isQueued ( integer $taskId ) : boolean | ||
mainThreadHeartbeat ( integer $currentTick ) | ||
scheduleAsyncTask ( |
Submits an asynchronous task to the Worker Pool | |
scheduleAsyncTaskToWorker ( |
Submits an asynchronous task to a specific Worker in the Pool | |
scheduleDelayedRepeatingTask ( |
||
scheduleDelayedTask ( |
||
scheduleRepeatingTask ( |
||
scheduleTask ( |
Method | Description | |
---|---|---|
addTask ( |
||
handle ( |
||
isReady ( $currentTicks ) | ||
nextId ( ) : integer |
public cancelTasks ( pocketmine\plugin\Plugin $plugin ) | ||
$plugin | pocketmine\plugin\Plugin |
public mainThreadHeartbeat ( integer $currentTick ) | ||
$currentTick | integer |
public scheduleAsyncTask ( |
||
$task | ||
return | void |
public scheduleAsyncTaskToWorker ( |
||
$task | ||
$worker | integer | |
return | void |
public scheduleDelayedTask ( |
||
$task | ||
$delay | integer | |
return | null | |
public scheduleRepeatingTask ( |
||
$task | ||
$period | integer | |
return | null | |
public scheduleTask ( |
||
$task | ||
return | null | |
protected AsyncPool,pocketmine\scheduler $asyncPool | ||
return |