AsyncIterableIterator-based queue for TypeScript/JavaScript. v3.0.1 ships TypeScript types and supports Node >=6. Active maintenance with infrequent releases. Differentiator: implements AsyncIterableIterator directly, enabling for-await-of consumption without external dependencies.
npm install ts-async-iterable-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating an async queue, enqueuing items, and consuming via for-await-of loop.
Use createAsyncQueue<T>() instead of new AsyncQueue<T>().
Import createAsyncQueue and use it instead.
Ensure all enqueues happen before calling complete().
Implement custom timeout logic if needed, e.g., with Promise.race.
Use createAsyncQueue<T>() with explicit type argument.
Use import { createAsyncQueue } from 'ts-async-iterable-queue'.Run npm install ts-async-iterable-queue.
Use queue directly in for-await-of; the type is correct.
Ensure complete() is called only after all enqueues.
No dependency data recorded yet.