mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 17:06:16 +00:00
Merge branch 'stable' into master
# Conflicts: # build/make-release.php # composer.lock # resources/vanilla # src/plugin/PluginDescription.php # src/pocketmine/entity/Human.php
This commit is contained in:
@ -262,6 +262,16 @@ class AsyncPool{
|
||||
return $more;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array of worker ID => task queue size
|
||||
*
|
||||
* @return int[]
|
||||
* @phpstan-return array<int, int>
|
||||
*/
|
||||
public function getTaskQueueSizes() : array{
|
||||
return $this->workerUsage;
|
||||
}
|
||||
|
||||
public function shutdownUnusedWorkers() : int{
|
||||
$ret = 0;
|
||||
$time = time();
|
||||
|
Reference in New Issue
Block a user