<TTask is Task, TResult>
extends |
WorkerScheduler<TTask, TResult> |
---|
Methods | ||
---|---|---|
public
|
__construct(TaskHandler<TTask, TResult> $handler, int $workerCount)
|
# |
protected
|
start(): void
|
# |
protected
|
stop(): void
|
# |
Methods inherited from ApiGen\Scheduler\WorkerScheduler |
---|
writeMessage(), readMessage(), workerLoop(), schedule(), process(), |
Constants inherited from ApiGen\Scheduler\WorkerScheduler |
---|
|
Properties | |||
---|---|---|---|
protected
|
int[]
|
$workers = []
|
# |
protected
|
TaskHandler<TTask, TResult>
|
$handler
|
# |
Properties inherited from ApiGen\Scheduler\WorkerScheduler |
---|
$tasks, $pendingTaskCount, $workerReadableStreams, $workerWritableStreams, $workerCount |