You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for making this! It really simplifies my code. I tried using it for Twitter Rate limiting, but I found the requestsPerSecond approach a bit lacking.
In the Twitter API case, a request needs to be sent every 5 seconds. I tried setting the requestsPerSecond to 0.2, but it didn't work, unfortunately.
The text was updated successfully, but these errors were encountered:
The initial implementation tried to resolve promises in such a way that it would eventually converge in the requestsPerSecond value (roughly after 1 second). However this overcomplicates the code and forces to keep track of the time when a set of promises started.
I have simplified the code to just store the time when the last promise was started. This should fix this issue.
Hey,
Thanks for making this! It really simplifies my code. I tried using it for Twitter Rate limiting, but I found the requestsPerSecond approach a bit lacking.
In the Twitter API case, a request needs to be sent every 5 seconds. I tried setting the requestsPerSecond to 0.2, but it didn't work, unfortunately.
The text was updated successfully, but these errors were encountered: