SerialTaskQueue class final

A task's requests, run one at a time in the order they were added. A request that fails does not stop the next, and close waits for every request added before it.

Constructors

SerialTaskQueue(String _name)
A queue for one task, which its disposal error names, such as 'DecisionMaker'.

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>(FutureOr<T> request()) → Future<T>
Runs request after every request added before it and reports its failure as taskException does; a StateError once close is called.
close(FutureOr<void> release()) → Future<void>
Runs release once every request added has finished. Later calls return the same completion.
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