{"library":"wait-queue","type":"library","category":null,"description":"A JavaScript asynchronous queue that implements a producer-consumer pattern using ES6 classes and Promises. Version 1.1.4 (stable) provides methods like push, shift, pop, and unshift where shift and pop return Promises that resolve when items become available. Built on a LinkedList for efficient O(1) operations, it avoids the performance pitfalls of using Array.shift() on large arrays. Main differentiator: it's a lightweight, ready-to-use async queue without external dependencies, supporting both ESM imports and CommonJS requires.","language":"javascript","status":"active","version":"1.1.4","tags":["javascript","await","queue","tasks"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install wait-queue","imports":["import WaitQueue from 'wait-queue'","import WaitQueue from 'wait-queue';\nconst wq = new WaitQueue<string>();","const WaitQueue = require('wait-queue')"]},{"cmd":"yarn add wait-queue","imports":[]},{"cmd":"pnpm add wait-queue","imports":[]}],"homepage":"https://github.com/flarestart/wait-queue#readme","github":"https://github.com/flarestart/wait-queue","docs":null,"changelog":null,"pypi":null,"npm":"wait-queue","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}