Module answer
Expand description
The replicated limit ledger answers an acquire with one number: 0
queued, 1 the asked ticket granted, 2 + delay ask again after
delay ms (the rate limit refills then), or the top bit plus the
zigzag distance to another ticket of the same session that was granted
instead (the one the wait queue serves next).
Enums§
Constants§
Functions§
- decode
- granted
- Exact while the two tickets are less than 2^62 apart, as tickets of one client always are (they come from one counter).
- retry_
after