RateLimitSchedule class
Computes rate-limited fire times from requested times.
Constructors
- RateLimitSchedule({required int maxPerPeriod, required Duration period, Duration cooldown = Duration.zero})
-
At most
maxPerPeriodfires per rollingperiod, each at leastcooldownafter the previous. RequiresmaxPerPeriod >= 1and a positiveperiod;cooldowndefaults to zero. Audited: 2026-06-12 11:26 EDT
Properties
- 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
-
shape(
List< DateTime> requested) → List<DateTime> -
Returns the admitted fire times for
requested, in order. Each output is>=its corresponding request and respects the cooldown and window quota. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited