SafeSequencer<T extends Object> class

A queue that manages the execution of functions sequentially, allowing for optional throttling.

Constructors

SafeSequencer({_TOnPrevErr<T>? onPrevErr, bool eagerError = false, Duration? buffer})

Properties

current Resolvable<Option<T>>
The current value or future in the queue.
no setter
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Indicates whether the queue is empty or processing.
no setter
last Resolvable<Option<T>>
Retrieves the last value in the queue.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(FutureOr<void> handler(), {Duration? buffer, _TOnPrevErr<T>? onPrevErr, bool? eagerError}) FutureOr<void>
Adds a handler to the queue that processes the previous value.
addSafe(Resolvable<Option<T>>? handler(Result<Option<T>> previous), {Duration? buffer, _TOnPrevErr<T>? onPrevErr, bool? eagerError}) Resolvable<Option<T>>
Adds a handler to the queue that processes the previous value.
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