PrismRateLimiter class
A token-bucket rate limiter for AI API calls.
Constructors
- PrismRateLimiter({required int maxPerSecond, int burst = 1})
Properties
- burst → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxPerSecond → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
acquire(
) → Future< void> -
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