ConcurrentQueue class

Constructors

ConcurrentQueue({bool autoStart = true, int concurrency = 1 << 32, Duration interval = Duration.zero, int intervalCap = 1 << 32, bool carryoverConcurrencyCount = false, Duration timeout = Duration.zero, bool throwOnTimeout = false})

Properties

concurrency int
getter/setter pair
eventStream Stream<QueueEvent>
no setter
hashCode int
The hash code for this object.
no setterinherited
isPaused bool
no setter
pending int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
no setter
timeout Duration
getter/setter pair

Methods

add<T>(Task<T> task, {int priority = 0, dynamic key}) Future<T>
addAll<T>(List<Task<T>> tasks, {int priority = 0}) Future<List<T>>
clear() → void
emit(QueueEventAction event, [dynamic result]) → void
indexOf(dynamic key) int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on(QueueEventAction action, void event(QueueEvent)) StreamSubscription
onEmpty() Future<void>
onIdle() Future<void>
pause() → void
remove(dynamic key) RunFunction?
start() ConcurrentQueue
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited