taskgroup
Advanced tools
Changelog
v5.0.2 2018 July 13
Changelog
v5.0.1 2016 June 13
clear
to clearRemaining
alias for backwards compatibility between v4 and v5Changelog
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:
Changelog
v4.3.1 2015 December 10
cyclic.js
as the problem it solved was solved by npm v2 and aboveChangelog
v4.3.0 2015 March 15
Task
and TaskGroup
are now childrenTask
attribute on the TaskGroup class to allow over-riding of what should be the sub-task classTaskGroup
attribute on the TaskGroup class to allow over-riding of what should be the sub-taskgroup classsync
configuration option, which when set to true
will allow the execution of a Task or TaskGroup to execute synchronouslyChangelog
v4.2.1 2015 February 20
Changelog
v4.2.0 2015 February 2
try...catch
for Node v0.8 and browser environments with a workaround to prevent error suppression
Changelog
v4.1.0 2015 February 2
try...catch
at all, if you want error catching in your task, you must not disable domains (they are enabled by default) - why?.bind
) as the superflous check did