ProcessGroup<O, I> class
Create a bunch of Processes that run the same processLoop
.
- Implemented types
-
- ParallelizationInterface<
O, I>
- ParallelizationInterface<
Constructors
-
ProcessGroup({required Future<
O> processLoop(I), int? processCount}) -
Create a
ProcessGroup
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- iType ↔ Type
-
Input Type for this process
latefinaloverride-getter
- oType ↔ Type
-
Output Type for this process
latefinaloverride-getter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
↔ Stream<
O> -
Stream with processed outputs
latefinaloverride-getter
Methods
-
forceKill(
) → void -
Kill the
ProcessGroup
right NOW irrespective or unprocessed inputsoverride -
kill(
) → void -
Kill the
ProcessGroup
after all current inputs are processedoverride -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
I data) → void -
Send data to the Process
override
-
start(
) → Future< Stream< O> > -
Start up the
ProcessGroup
. Call this before sending any data to theProcessGroup
override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited