Socket
Socket
Sign inDemoInstall

@adobe/helix-shared-process-queue

Package Overview
Dependencies
0
Maintainers
23
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @adobe/helix-shared-process-queue

Shared modules of the Helix Project - Process Queue


Version published
Weekly downloads
1.7K
decreased by-37.29%
Maintainers
23
Install size
26.3 kB
Created
Weekly downloads
 

Changelog

Source

3.0.4 (2019-10-16)

Bug Fixes

  • package: update snyk to the version 1.235.0. (#182) (311b8b3)

Readme

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

Last updated on 17 Apr 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc