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

Check if available without limiting #31

Open
syned13 opened this issue Aug 3, 2020 · 1 comment
Open

Check if available without limiting #31

syned13 opened this issue Aug 3, 2020 · 1 comment

Comments

@syned13
Copy link

syned13 commented Aug 3, 2020

It would be nice to be able to have something like "IsAllowed" which would return me a boolean. This is for being able to block or not a request without "dropping in buckets". I'm using this for the creation of a process which will at times require polling, and I will have to "drop in buckets" only when the process has been successfully created, and not right when the request is made.

Greetings

@leucos
Copy link

leucos commented May 14, 2021

limiter.AllowN(ctx, "project:123", l, 0) ?

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

No branches or pull requests

2 participants