PHP Class pocketmine\scheduler\AsyncPool

Afficher le fichier Open project: iTXTech/Genisys Class Usage Examples

Protected Properties

Свойство Type Description
$size

Méthodes publiques

Méthode Description
__construct ( Server $server, $size )
collectTasks ( )
getSize ( )
increaseSize ( $newSize )
removeTasks ( )
submitTask ( AsyncTask $task )
submitTaskToWorker ( AsyncTask $task, $worker )

Private Methods

Méthode Description
removeTask ( AsyncTask $task, $force = false )

Method Details

__construct() public méthode

public __construct ( Server $server, $size )
$server pocketmine\Server

collectTasks() public méthode

public collectTasks ( )

getSize() public méthode

public getSize ( )

increaseSize() public méthode

public increaseSize ( $newSize )

removeTasks() public méthode

public removeTasks ( )

submitTask() public méthode

public submitTask ( AsyncTask $task )
$task AsyncTask

submitTaskToWorker() public méthode

public submitTaskToWorker ( AsyncTask $task, $worker )
$task AsyncTask

Property Details

$size protected_oe property

protected $size