A simple async-await task queue written in TypeScript, version 1.1.0. It provides a TaskQueue class with start, pause, resume, and stop methods for managing sequential async task execution. Unlike complex libraries with concurrency or priority management, this focuses on simplicity and minimalism with a 2KB minified bundle. It ships TypeScript types and supports multiple module formats (es5, es6, esnext, iife, umd). Dependencies: none. Release cadence: low.
npm install ts-async-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a TaskQueue, enqueuing a task, starting the queue, and listening for the 'done' event.
Use a library like p-queue or async.queue for concurrency.
Use stop() to cancel pending tasks and reject the current task's promise.
Consider using 'stop()' followed by emptying the queue manually.
Use queue.tasks property to access the internal array: [...queue.tasks]
Pause or stop the queue before enqueuing new tasks.
No dependency data recorded yet.