BatchExecutor class
Runs many Requests concurrently, collecting a Result per request.
A single failing target never aborts the batch (the error lands in Result.fail, never thrown). Concurrency is bounded so 100k URLs don't open 100k sockets at once.
Constructors
- BatchExecutor(GoHttpClient client, {int concurrency = 1})
Properties
- client → GoHttpClient
-
final
- concurrency → int
-
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run<
T> (List< Request> requests, {Decoder<T> ? decoder, void onProgress(int done, int total)?, void onResult(Result<T> )?, List<ResultCallback> ? onResults}) → Future<List< Result< >T> > -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited