attempt abstract method

Future<RateLimitResult> attempt(
  1. String key,
  2. int maxAttempts,
  3. Duration decay
)

Records an attempt for key when under the limit.

Implementation

Future<RateLimitResult> attempt(String key, int maxAttempts, Duration decay);