Feature request to add a flush option to the queues #33
Unanswered
christianjuth
asked this question in
Q&A
Replies: 0 comments 1 reply
-
Did you mean to ask this in the pacer repo? We do plan to add flush to at least the debouncer and throttler, but I don't think to the queuer, because that's pretty much what the batcher is for. Well maybe since what you're asking for is a peekAllItems followed by reset, maybe we should just add a flushAllItems API that is a shortcut for that. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I know this might sound a little weird for a rate limiting library, but let me explain. I plan on running several queues in my app – one for each API endpoint. There are certain actions a user can perform where I might want to speed up one of the queues for a specific endpoint. So collectively the queues work together to make sure I don't get rate limited, but I want the flexibility to say "a user wants all the data this queue is processing immediately. Let's speed things up."
The same goes for the async queue.
Beta Was this translation helpful? Give feedback.
All reactions