Check if available without limiting
Opened this issue · 1 comments
syned13 commented
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 commented
limiter.AllowN(ctx, "project:123", l, 0)
?