New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add barrier.abort (issue #8) #15

wants to merge 2 commits into
base: master
Jump to file or symbol
Failed to load files and symbols.
+6 −1
Diff settings


Just for now

Viewing a subset of changes. View all

send abort's drain on next tick

  • Loading branch information...
fkuo committed Jan 29, 2014
commit 96126af3156e0b1a63f009befa2364ceda108fc0
@@ -513,5 +513,10 @@ Barrier.prototype.abort = function (err)
self.aborted[name] = now;
this.pending = {};
this.emit('drain', err);
this.scheduled = true;
setImmediate(function () {
self.scheduled = false;
self.emit('drain', err);
ProTip! Use n and p to navigate between commits in a pull request.