PHP Class pocketmine\scheduler\AsyncPool

Mostrar archivo Open project: iTXTech/Genisys Class Usage Examples

Protected Properties

Property Type Description
$size

Public Methods

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

Private Methods

Method Description
removeTask ( AsyncTask $task, $force = false )

Method Details

__construct() public method

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

collectTasks() public method

public collectTasks ( )

getSize() public method

public getSize ( )

increaseSize() public method

public increaseSize ( $newSize )

removeTasks() public method

public removeTasks ( )

submitTask() public method

public submitTask ( AsyncTask $task )
$task AsyncTask

submitTaskToWorker() public method

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

Property Details

$size protected_oe property

protected $size