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 with support for concurrency, naming, and nesting.
Group together synchronous and asynchronous tasks and execute them with support for concurrency, naming, and nesting.
npm install --save taskgroup
require('taskgroup')
npm install --save taskgroup
require('taskgroup')
//wzrd.in/bundle/taskgroup@5.0.0
ender add taskgroup
require('taskgroup')
This package is published with the following editions:
taskgroup
aliases taskgroup/index.js
which uses Editions to automatically select the correct edition for the consumers environmenttaskgroup/source/index.js
is Source + ESNext + Requiretaskgroup/es2015/index.js
is Babel Compiled + ES2015 + RequireOlder environments may need Babel's Polyfill or something similar.
Discover the release history by heading on over to the HISTORY.md
file.
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
These amazing people are maintaining this project:
No sponsors yet! Will you be the first?
These amazing people have contributed code to this project:
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
Unless stated otherwise all works are:
and licensed under:
v5.0.0 2016 June 4
Changes to be impressed by:
Changes to be cautious about:
require('taskgroup')
is no longer the TaskGroup class, you must again do require('taskgroup').TaskGroup
destroyOnceDone
configuration option
destroyOnceDone
to false
pauseOnError
, onError
or onExit
deprecation errordestroyDoneItems
configuration optiondestroyDoneItems
destroy()
now operates instantly, including removing all event listeners
.done().destroy().done()
the first done listener would be discardedexit()
method and exit
configuration option
errorOnExcessCompletions
and destroyOnceDone
configuration options are now providedonError
and pauseOnError
configuration options with abortOnError
for better clarity
sync
configuration option
includeInResults
configuration option to storeResult
with improved functionality
destroyOnceDone
is true
, storeResult
will default to false
done()
, onceDone()
, and whenDone()
now only listen for upcoming completions, rather than past
timeout
configuration option has been removed
results
state property renamed to result
addGroup()
method is now addTaskGroup()
, alias providednestedConfig
configuration option into nestedTaskConfig
and nestedTaskGroupConfig
Changes to be aware of:
started
event has been split into pending
and running
events for more accurate semanticsprivate
or public
depending on their use casesgetNames
method has been replaced by just names
getter, which has its own toString()
method that makes use of the nameSeparator
configuration option, alias providedgetConfig()
method now config
getter, alias providedisCompleted() method now
completed` getter, alias providedhasStarted()
method now started
getter, alias providedgetTotalItems()
method now totalItems
getter, alias providedgetItemTotals()
method now `itemTotals getter, alias provideddomain
configuration option is true
and domains are not available, an error will resultcompletion
event
result
storage now is stored without the error/first argument, as that is stored elsewherePeople to thank:
Issues closed:
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.