ParallelStrategy class
Processes pending operations in parallel batches.
- Implemented types
Constructors
- ParallelStrategy({int batchSize = 10, bool failFast = true})
-
Creates a strategy that processes operations in parallel.
const
Properties
- batchSize → int
-
The number of operations to process concurrently in a single batch.
final
- failFast → bool
-
Whether to stop processing when the first error occurs.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
execute<
T extends DatumEntityInterface> (List< DatumSyncOperation< operations, Future<T> >void> processOperation(DatumSyncOperation<T> operation), bool isCancelled(), void onProgress(int completed, int total), {DatumLogger? logger}) → Future<void> -
A strategy that runs the sync process in a background isolate to avoid
blocking the UI thread.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited