{"library":"queue2","type":"library","category":null,"description":"queue2.js v0.2.1 is a specialized Node.js queue data structure that combines unordered and ordered queuing with injection capabilities. Created by fent, it allows tasks to be executed concurrently with a configurable concurrency limit while supporting ordered processing through task injection. The first worker handles unordered tasks with an inject method to replace the current task with a sequence of ordered tasks. It requires Node >=4 and has no external dependencies. The package is in maintenance mode with no recent updates, and its API includes event emitters for error, drain, full, and empty events. It is a niche solution for specific use cases like asynchronous file reading with ordered subdirectory traversal.","language":"javascript","status":"maintenance","version":"0.2.1","tags":["javascript","queue","ordered","concurrency"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install queue2","imports":["import { Queue2 } from 'queue2'","const { Queue2 } = require('queue2');","import Queue2 from 'queue2';"]},{"cmd":"yarn add queue2","imports":[]},{"cmd":"pnpm add queue2","imports":[]}],"homepage":"https://github.com/fent/queue2.js#readme","github":"git://github.com/fent/queue2.js","docs":null,"changelog":null,"pypi":null,"npm":"queue2","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}