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

How to consume multiple actions by calling limitWithInfo()? #58

Closed
huksley opened this issue Nov 17, 2021 · 3 comments · May be fixed by #61
Closed

How to consume multiple actions by calling limitWithInfo()? #58

huksley opened this issue Nov 17, 2021 · 3 comments · May be fixed by #61

Comments

@huksley
Copy link
Contributor

huksley commented Nov 17, 2021

Hi, I would like to use for example 100 "actions" if possible and if not possible, use a smaller number available. How to implement that?

@peterkhayes
Copy link
Owner

I don't think that's supported at present, except by calling limitWithInfo inside a loop that bails if the limit is reached. This could be a useful feature if you're open to implementing something.

@huksley
Copy link
Contributor Author

huksley commented Nov 17, 2021

Ok, I'll try.
Btw have you seen this implementation?! This is terrible
https://github.com/ysulyma/microtime-nodejs/blob/master/index.js#L1

@peterkhayes
Copy link
Owner

As of this morning, that dependency is gone! Thanks @huksley

#60

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 a pull request may close this issue.

2 participants