PoolExecutor class
Runs jobs on a pool of isolates. Uses isolate affinity for jobs having the same deduplication key, otherwise uses round robin to select an isolate.
Constructors
- PoolExecutor({required int concurrency, ExecutorDelegateFactory? executorFactory})
Properties
Methods
-
dispose(
) → void -
called when done, cancels any oustanding jobs
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
submit<
Q, R> (Job< Q, R> job) → Future<R> -
override
-
submitAll<
Q, R> (Job< Q, R> job) → List<Future< R> > -
submits the given function and value to all isolates in the executor,
useful for cases where state must be set up in isolates prior to executing
jobs
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited