Skip to content

v1.2.0

Latest

Choose a tag to compare

@henrygd henrygd released this 20 Nov 19:23

Features

  • Time-based rate limiting: Added @henrygd/queue/rl export. 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 a Queue cleared error. Previously, pending promises were silently removed, causing queue.all() to hang. (#4)

Full Changelog: v1.1.0...v1.2.0