TpmRateLimitGate class
Permits up to N tokens per minute (token-aware, refills similarly).
Note: callers must pass a reasonable estimatedTokens to acquire;
underestimating leaks throughput, overestimating wastes capacity.
- Implemented types
Constructors
- TpmRateLimitGate({required int tokensPerMinute})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tokensPerMinute → int
-
final
Methods
-
acquire(
{int estimatedTokens = 0}) → Future< void> -
override
-
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