<TTask is Task, TResult>
implements |
Scheduler<TTask, TResult> |
---|
Methods | ||
---|---|---|
public
|
__construct(TaskHandler<TTask, TResult> $handler)
|
# |
public
|
schedule(TTask $task): void
|
# |
public
|
process(): iterable<TTask, TResult>
|
# |
Properties | |||
---|---|---|---|
protected
|
SplQueue<TTask>
|
$tasks
|
# |
protected
|
TaskHandler<TTask, TResult>
|
$handler
|
# |