GetQueue class

A utility class for managing a queue of asynchronous jobs.

Jobs added using add will be executed sequentially in the order they were added. Each job is represented by a Function that returns a Future. The result of each job's future is stored in a Completer. Jobs are executed asynchronously using Future and Completer.

Constructors

GetQueue()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add<T>(Function job) Future<T>
Adds a job to the queue and returns its result as a future.
cancelAllJobs() → void
Cancels all jobs in the queue.
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