MessageDelayer<M, R> class

Protects a resource by delaying access according to a rate limit.

Constructors

MessageDelayer({required R handler(M message), required List<RateLimit> rateLimits})

Properties

handler → R Function(M message)
The resource to be protected.
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
sendMessage(M message) Future<R>
Initiates an attempt to access the resource.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited