IsolatePool class
A pool of isolates for parallel processing
Constructors
- IsolatePool.new(int _poolSize)
- Creates a new IsolatePool with the given pool size
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Disposes the isolate pool
-
initialize(
) → Future< void> - Initializes the isolate pool
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
process<
T, R> ({required List< T> items, required Future<R> processFunction(T), void onProgress(int completed, int total)?}) → Future<List< R> > - Processes a list of items in parallel
-
registerFunction<
T, R> (Future< R> function(T)) → void - Registers a function to be available in the isolates
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited