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:
Dylan K. Taylor
2020-10-21 16:55:52 +01:00
6 changed files with 37 additions and 23 deletions

View File

@ -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();