Skip to content
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

More of a suggestion than an issue #1

Open
dillonkrug opened this issue Jun 4, 2014 · 1 comment
Open

More of a suggestion than an issue #1

dillonkrug opened this issue Jun 4, 2014 · 1 comment

Comments

@dillonkrug
Copy link

fs.readFile('foo.txt', barrier.waitOn('foo'));
fs.readFile('bar.txt', barrier.waitOn('bar'));
fs.readFile('baz.txt', barrier.waitOn('baz'));

barrier.endWith(function( results ){
    // results is an object with "foo", "bar", and "baz" properties
});
@jimhigson
Copy link
Owner

Like it, yes.

.waitOn could take zero, one or two arguments with allowable arguments being a string or a function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants