Security News
Highlights from the 2024 Rails Community Survey
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
taskgroup
Advanced tools
Group together synchronous and asynchronous tasks and execute them in either serial or parallel
Group together synchronous and asynchronous tasks and execute them in either serial or parallel
npm install --save taskgroup
# 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')
You can discover the history inside the History.md file
Licensed under the incredibly permissive MIT License
Copyright © 2013+ Bevry Pty Ltd
Copyright © 2011-2012 Benjamin Arthur Lupton
v2.0.0 2013 March 27
FAQs
Group together synchronous and asynchronous tasks and execute them with support for concurrency, naming, and nesting.
The npm package taskgroup receives a total of 55,294 weekly downloads. As such, taskgroup popularity was classified as popular.
We found that taskgroup demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.