@linara/rate-limiter

TokenBucket — 10 req/min. Simulating 12 consecutive calls.

call #tokens remainingresult
19✓ allowed
28✓ allowed
37✓ allowed
46✓ allowed
55✓ allowed
64✓ allowed
73✓ allowed
82✓ allowed
91✓ allowed
100✓ allowed
110✗ throttled
120✗ throttled

config

requestsPerMinute10
refillRate0.000167 tokens/ms
acquire(tokens)async — waits if throttled