Browse files

v3.3.3. Bugfix.

  • Loading branch information...
1 parent 6030caa commit 83a044401497f91431d8a856f243071bf440ea4f @balupton balupton committed Nov 27, 2013
Showing with 6 additions and 3 deletions.
  1. +3 −0 History.md
  2. +1 −1 package.json
  3. +2 −2 src/lib/taskgroup.coffee
View
3 History.md
@@ -1,5 +1,8 @@
## History
+- v3.3.3 November 27, 2013
+ - Fixed possible "(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral." error under certain circumstances
+
- v3.3.2 November 19, 2013
- Don't add or create empty tasks and groups
View
2 package.json
@@ -1,7 +1,7 @@
{
"title": "TaskGroup",
"name": "taskgroup",
- "version": "3.3.2",
+ "version": "3.3.3",
"description": "Group together synchronous and asynchronous tasks and execute them with support for concurrency, naming, and nesting.",
"homepage": "https://github.com/bevry/taskgroup",
"license": {
View
4 src/lib/taskgroup.coffee
@@ -183,7 +183,7 @@ class Task extends EventEmitter
# Give time for the listeners to complete before continuing
# This delay is needed for task groups
- process.nextTick(@fire.bind(@))
+ setImmediate(@fire.bind(@))
# Chain
@
@@ -244,7 +244,7 @@ class TaskGroup extends EventEmitter
@setConfig(opts)
# Give setConfig enough chance to fire
- process.nextTick(@fire.bind(@))
+ setImmediate(@fire.bind(@))
# Handle item completion
@on('item.complete', @itemCompletionCallback.bind(@))

0 comments on commit 83a0444

Please sign in to comment.