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.

devops
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.

Replace require('queue-async') with import from 'd3-queue'.

import { queue } from 'd3-queue'

CommonJS users should update to require('d3-queue') and destructure queue.

const { queue } = require('d3-queue')

The default export is now from 'd3-queue'.

import queue 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 footguns
deprecated'queue-async' is deprecated; use 'd3-queue' instead.
gotchaThe function signature for defer and awaitAll remains identical, but the package name has changed.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
6 hits · last 30 days
ahrefsbot
1
Resources