ParallelTaskQueue class

A queue that executes a limited number of Futures in parallel.

Implemented types

Constructors

ParallelTaskQueue(int maxParallel, {String? name})
Creates a new ParallelTaskQueue.

Properties

hashCode int
The hash code for this object.
no setterinherited
isCancelled bool
no setteroverride
maxParallel int
final
metrics TaskQueueMetrics
latefinaloverride-getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add<T>(Future<T> closure()) Future<T>
Adds a Future-returning closure to the queue.
override
cancel() → void
Cancels the queue.
override
clear() → void
Removes all pending tasks from the queue.
override
dispose() → void
Disposes the queue and releases any associated resources.
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