Socket
Socket
Sign inDemoInstall

taskgroup

Package Overview
Dependencies
Maintainers
1
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

taskgroup

Group together synchronous and asynchronous tasks and execute them in either serial or parallel


Version published
Weekly downloads
67K
increased by19.24%
Maintainers
1
Weekly downloads
 
Created
Source

Task Group Build Status

Group together synchronous and asynchronous tasks and execute them in either serial or parallel

Install

Backend

  1. Install Node.js
  2. npm install --save taskgroup

Frontend

  1. See Browserify

Usage

# Import
TaskGroup = require('taskgroup')

# Add tasks to the group and fire them in parallel
tasks = new TaskGroup (err,lastResult,results) -> console.log(err,lastResult,results)
tasks.push (complete) ->
	someAsyncFunction(arg1, arg2, complete)
tasks.push ->
	someSyncFunction(arg1, arg2)
tasks.run()  # can also use tasks.run('parallel')

# Add tasks to the group and fire them in serial
tasks = new TaskGroup (err,lastResult,results) -> console.log(err,lastResult,results)
tasks.push (complete) ->
	someAsyncFunction(arg1, arg2, complete)
tasks.push ->
	someSyncFunction(arg1, arg2)
tasks.run('serial')

History

You can discover the history inside the History.md file

License

Licensed under the incredibly permissive MIT License
Copyright © 2013+ Bevry Pty Ltd
Copyright © 2011-2012 Benjamin Arthur Lupton

Keywords

FAQs

Package last updated on 27 Mar 2013

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