ParallelProcessor<T, R> class
A utility class for processing tasks in parallel using Isolates
Constructors
- ParallelProcessor.new({int maxConcurrency = 5})
-
Creates a new ParallelProcessor with the given
maxConcurrency
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxConcurrency → int
-
The maximum number of isolates to use
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Disposes the parallel processor
-
initialize(
) → Future< void> - Initializes the parallel processor
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
process(
{required List< T> items, required Future<R> processFunction(T item), void onProgress(int completed, int total)?}) → Future<List< R> > - Processes a list of items in parallel
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited