Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fastseries

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastseries

Zero-overhead asynchronous series/each/map function calls

  • 1.7.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is fastseries?

fastseries is a lightweight and fast utility for running a series of asynchronous functions in Node.js. It is designed to handle a series of tasks in a sequential manner, ensuring that each task completes before the next one starts.

What are fastseries's main functionalities?

Running a series of asynchronous functions

This feature allows you to run a series of asynchronous functions in sequence. Each function is executed one after the other, and the final callback is called once all functions have completed.

const series = require('fastseries')();

function task1(cb) {
  setTimeout(() => {
    console.log('Task 1 complete');
    cb(null, 'result1');
  }, 1000);
}

function task2(cb) {
  setTimeout(() => {
    console.log('Task 2 complete');
    cb(null, 'result2');
  }, 500);
}

function task3(cb) {
  setTimeout(() => {
    console.log('Task 3 complete');
    cb(null, 'result3');
  }, 200);
}

series(null, [task1, task2, task3], (err, results) => {
  if (err) throw err;
  console.log('All tasks complete', results);
});

Other packages similar to fastseries

Keywords

FAQs

Package last updated on 24 Dec 2015

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc