WorkerRunner[Input: Any #send, Output: Any #send]¶
WorkerRunner
is responsible for delivering data to
Worker instances for processing and for coordinating
the job lifecycle with other fork_join
library actors.
Constructors¶
create¶
new tag create(
coordinator: _Coordinator[Input, Output] tag,
collector: CollectorRunner[Input, Output] tag,
notify: Worker[Input, Output] iso)
: WorkerRunner[Input, Output] tag^
Parameters¶
- coordinator: _Coordinator[Input, Output] tag
- collector: CollectorRunner[Input, Output] tag
- notify: Worker[Input, Output] iso
Returns¶
- WorkerRunner[Input, Output] tag^
Public Functions¶
deliver¶
Called to send a result to the collector and request additional work from the coordinator.
Parameters¶
- result: Output
Returns¶
- None val
yield¶
Called to have the worker yield the CPU and continue later.
Returns¶
- None val