Features
- Time-based rate limiting: Added
@henrygd/queue/rlexport. You can now limit how many tasks start within a specific time window in addition to concurrency. (#3)
import { newQueue } from '@henrygd/queue/rl'
// 10 concurrent tasks max, but only 3 can start per second
const queue = newQueue(10, 3, 1000)Bug Fixes
- Fix
clear()hanging:clear()now rejects all pending promises with aQueue clearederror. Previously, pending promises were silently removed, causingqueue.all()to hang. (#4)
Full Changelog: v1.1.0...v1.2.0