<TTask is Task, TResult, TContext>
extends |
WorkerScheduler<TTask, TResult> |
---|
Methods | ||
---|---|---|
public
|
__construct(
class-string<Container> $containerClass,
array<string, mixed> $containerParameters,
class-string<TaskHandlerFactory<TContext, TaskHandler<TTask, TResult>>> $handlerFactoryClass,
TContext $context,
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
|
resource[]
|
$workers = []
|
# |
protected
|
class-string<Container>
|
$containerClass
|
# |
protected
|
array<string, mixed>
|
$containerParameters
|
# |
protected
|
class-string<TaskHandlerFactory<TContext, TaskHandler<TTask, TResult>>>
|
$handlerFactoryClass
|
# |
protected
|
TContext
|
$context
|
# |
Properties inherited from ApiGen\Scheduler\WorkerScheduler |
---|
$tasks, $pendingTaskCount, $workerReadableStreams, $workerWritableStreams, $workerCount |