Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add async waiting for n cells in keyed stores #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

patlkli
Copy link

@patlkli patlkli commented Jan 5, 2022

#10 added the until_n_ready{,_with_jitter} functions to asynchronously wait for n cells in a direct rate limiter.

This adds the keyed variants until_key_n_ready{,_with_jitter} of these functions to wait for n cells to be available for a certain key.

I'm not sure, though, if the InsufficientCapacity error shouldn't be moved out of state::direct::future to somewhere more general. If you have any suggestions, let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant