TaskQueue<T> class
A task queue of Futures to be completed in parallel, throttling the number of simultaneous tasks.
The tasks return results of type T.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxJobs → int
-
The maximum number of jobs that this queue will run simultaneously.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tasksComplete
→ Future<
void> -
Returns a future that completes when all tasks in the TaskQueue are
complete.
no setter
Methods
-
add(
TaskQueueClosure< T> task) → Future<T> - Adds a single closure to the task queue, returning a future that completes when the task completes.
-
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