LimitOptions class
Options for creating a limited function
Used with limitFunction to configure concurrency limits and queue strategy.
Example:
final options = LimitOptions(
concurrency: 2,
queueStrategy: QueueStrategy.priority,
);
final limited = limitFunction(myFunction, options);
Constructors
- LimitOptions({required int concurrency, QueueStrategy queueStrategy = QueueStrategy.fifo})
-
Creates options for limiting function concurrency
const
Properties
- concurrency → int
-
Maximum number of concurrent operations
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- queueStrategy → QueueStrategy
-
Queue execution strategy
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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