🚀 Socket Launch Week 🚀 Day 1: Introducing .NET Support in Socket.Learn More
Socket
Sign inDemoInstall
Socket

@adobe/helix-shared-process-queue

Package Overview
Dependencies
Maintainers
30
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adobe/helix-shared-process-queue

Shared modules of the Helix Project - Process Queue

3.1.3
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
30
Weekly downloads
 
Created
Source

Helix Shared - process queue

Usage

Process tasks concurrently:

const processQueue = require('@adobe/helix-shared-process-queue');

const tasks = [1, 2, 3];

const result = await processQueue(tasks, async (task) => {
  console.log(task);
  return someValue;
});

Access results during task

const processQueue = require('@adobe/helix-shared-process-queue');

const tasks = [1, 2, 3];

const result = await processQueue(tasks, async (task, queue, results) => {
  if (somecondition(results)) {
    // returning undefined does not add the return value to results
    return;
  }
  return someValue;
});

FAQs

Package last updated on 25 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts