AsyncQueue class Null safety
AsyncQueue
a queue of async jobs that ensure those jobs will be execute in order, first come first serve
Constructors
- AsyncQueue()
- initialize normal queue
- AsyncQueue.autoStart()
-
initialize auto queue
factory
Properties
Methods
-
addJob(
AsyncJob job) → void - Add new job into the queue
-
addJobThrow(
AsyncJob job) → void - Add new job in to the queue
-
addQueueListener(
QueueListener listener) → void - Queue listener, emit event that indicate state of the queue
-
close(
{bool forceStop = false}) → void - close the queue so that no more job can be added
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
start(
) → Future - to start the execution of jobs in queue
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited