A lightweight Node.js library (v1.0.0) that ensures an initialization function runs only once for a given set of arguments, while queuing and resolving multiple listeners that register before the function completes. Provides built-in retry support on failure. Ideal for deduplicating async operations like data fetching or resource initialization.
npm install ready-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue that deduplicates calls to load with the same arguments and queues listeners until the promise resolves.
Ensure load returns a promise if async, or a truthy value if sync.
Implement your own timeout wrapper around the queue if needed.
Create a .d.ts file: declare module 'ready-queue';
Implement your own retry logic with backoff if needed.
Use require('ready-queue') instead of import.No dependency data recorded yet.