{"library":"callback-queue","type":"library","category":null,"description":"A Node.js library for queuing callbacks so that concurrent requests for the same resource are executed only once. Current stable version is 3.0.0. It allows you to deduplicate simultaneous calls to the same function (e.g., HTTP requests) by queuing callbacks under a key. Once the first call completes, all queued callbacks receive the result. Works in Node.js and browser via browserify. Lightweight and simple, with no external dependencies.","language":"javascript","status":"active","version":"3.0.0","tags":["javascript","queue","callback","http","request"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install callback-queue","imports":["const callbackQueue = require('callback-queue');","const cb = callbackQueue.add(key, callback);","callbackQueue.remove(key, error);"]},{"cmd":"yarn add callback-queue","imports":[]},{"cmd":"pnpm add callback-queue","imports":[]}],"homepage":"git://github.com/AVVS/callback-queue","github":"git://github.com/AVVS/callback-queue","docs":null,"changelog":null,"pypi":null,"npm":"callback-queue","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}