Skip to content

Add async waiting for n cells in keyed stores - #103

Open
patlkli wants to merge 1 commit into
boinkor-net:masterfrom
patlkli:until_key_n_ready
Open

Add async waiting for n cells in keyed stores#103
patlkli wants to merge 1 commit into
boinkor-net:masterfrom
patlkli:until_key_n_ready

Conversation

@patlkli

@patlkli patlkli commented Jan 5, 2022

Copy link
Copy Markdown

#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