pocketmine\scheduler\ServerScheduler::scheduleAsyncTaskToWorker PHP Метод

scheduleAsyncTaskToWorker() публичный Метод

Submits an asynchronous task to a specific Worker in the Pool
public scheduleAsyncTaskToWorker ( AsyncTask $task, integer $worker ) : void
$task AsyncTask
$worker integer
Результат void
    public function scheduleAsyncTaskToWorker(AsyncTask $task, $worker)
    {
        $id = $this->nextId();
        $task->setTaskId($id);
        $this->asyncPool->submitTaskToWorker($task, $worker);
    }