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

set number of tokens manually? #4

bradwbradw opened this Issue Aug 24, 2017 · 1 comment


None yet
2 participants

bradwbradw commented Aug 24, 2017

Is it possible to set the number of tokens after initializing?

The api service i'm using will tell me the bucket level after every request I make, so i'd like to use this as a way to keep a more specific token count by calling 'setTokens(n)` after the request comes back.


This comment has been minimized.

Show comment
Hide comment

jesucarr Aug 24, 2017


yes, you can just initialize with the tokensLeft option


jesucarr commented Aug 24, 2017

yes, you can just initialize with the tokensLeft option

@jesucarr jesucarr closed this Aug 24, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment