sindresorhus / sindresorhus/p-queue
Feature request: Ability to change interval and intervalCap at runtime
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 220
- PR merge metrics
- No merged PRs in 30d
Description
As far as I can tell currently there is no way to change the interval and/or intervalCap at runtime. Is there any chance for this to be implemented?
The current solution is great if you know in advance that you want to run tasks at a steady rate. However, in more dynamic use cases changing interval or intervalCap would be very useful.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the queue implementation and existing handling for interval and intervalCap, then review the related tests. Clarify how runtime changes should behave while tasks are queued or running; done means both settings can be changed at runtime with tests covering the expected behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100