jhurliman / node-rate-limiter

A generic rate limiter for node.js. Useful for API clients, web crawling, or other tasks that need to be throttled
MIT License
1.5k stars 132 forks source link

adding some loop-wait construction to be able to pass request the moment it is allowed again #5

Closed 0xgeert closed 11 years ago

0xgeert commented 11 years ago

This would make this module suited for clients wanting to ADHERE to a certain rate limit as well. This, as opposed to api's wanting to IMPOSE a rate limit, which is what this seems to be primarily targetted upon.

If there's an easy way to do this, I'll be glad to hear.

Thanks, Geert-Jan

0xgeert commented 11 years ago

Never mind. It's all baked in and it works perfectly. Thanks!