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

flow.sync within add/wait #4

Closed
wampleek opened this issue Jan 13, 2012 · 3 comments
Closed

flow.sync within add/wait #4

wampleek opened this issue Jan 13, 2012 · 3 comments

Comments

@wampleek
Copy link

Hey, I noticed an interesting issue as illustrated below:

asyncblock(function(flow) {

    var foo = function(callback) {
        flow.sync.doSomething();
        callback();
    };

    foo(flow.add());
    flow.wait();

});

It seems the flow.wait pauses indefinitely. Should I expect to be able to make a sync call within an add/wait scenario?

--wampleek

@scriby
Copy link
Owner

scriby commented Jan 13, 2012

I think that general form should work. You have some funky syntax around flow.sync.doSomething(), but I'll just assume that's the example.

@wampleek
Copy link
Author

The example should read flow.sync(doSomething); I just updated my module and the issue went away. Thanks for the great work on this!

@scriby
Copy link
Owner

scriby commented Jan 13, 2012

magic

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