Registry / devops / queue-async

queue-async

JSON →
library1.2.1jsnpmunverified

This package has been renamed to d3-queue. It provided an asynchronous queue with configurable concurrency for managing task execution order and parallelism. The latest version is 1.2.1, but no further development occurs. Users should migrate to d3-queue, which is maintained as part of the D3 ecosystem. The original queue-async differs from alternatives like async.queue by offering a simpler API and integration with D3's deferred pattern.

npm install queue-async
INSTALL
IMPORT
SIG · QUEUE-ASYNC
Q
queue-async
devopsjavascriptv1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

queue
import { queue } from 'd3-queue'
const queue = require('queue-async')
Replace require('queue-async') with import from 'd3-queue'.
queue
const { queue } = require('d3-queue')
const queue = require('queue-async')
CommonJS users should update to require('d3-queue') and destructure queue.
default export
import queue from 'd3-queue'
import queue from 'queue-async'
The default export is now from 'd3-queue'.

Demonstrates migrating from queue-async to d3-queue with concurrency control and async task deferral.

const { queue } = require('d3-queue'); const q = queue(4); // concurrency 4 q.defer(fetch, 'https://api.example.com/user1'); q.defer(fetch, 'https://api.example.com/user2'); q.awaitAll((error, results) => { if (error) throw error; console.log(results); });
Debug
Known issues
deprecated'queue-async' is deprecated; use 'd3-queue' instead.
fix
Replace all imports/requires from 'queue-async' with 'd3-queue'.
affects: >=1.0.0
gotchaThe function signature for defer and awaitAll remains identical, but the package name has changed.
fix
Update package.json and source imports.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'queue-async'
Package renamed to d3-queue; old package not installed.
fix
Run 'npm install d3-queue' and update imports to 'd3-queue'.
TypeError: queue is not a function
Incorrect import: using default import from 'queue-async' after switching to 'd3-queue'.
fix
Use named import: import { queue } from 'd3-queue'.
Upgrade
Version history
1.2.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
queue-async — npm install queue-async · libregistry