TaskStrategyThrottle class final

Rate-limit strategy: at most one run per duration window. The edge selects which call within the window actually drives the run. See TaskStrategy.throttle.

Inheritance

Constructors

TaskStrategyThrottle(Duration duration, {ThrottleEdge edge = ThrottleEdge.leading})
const

Properties

duration Duration
Cooldown window between consecutive runs.
final
edge ThrottleEdge
Which call inside each window fires the function — ThrottleEdge.leading (the first one, immediately) or ThrottleEdge.trailing (the last one, at the end of the window).
final
hashCode int
The hash code for this object.
no setterinherited
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