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

Is there a way to do nested tasks? #2

Closed
alexbosworth opened this issue Aug 4, 2014 · 3 comments
Closed

Is there a way to do nested tasks? #2

alexbosworth opened this issue Aug 4, 2014 · 3 comments

Comments

@alexbosworth
Copy link

I have a method with a task queue that calls another method with a task queue

I'm guessing this is because they are on the same queue?

I have 1 2 a b 3

It executes 1 2 a 3 b

@icanzilb
Copy link
Owner

icanzilb commented Aug 4, 2014

hm, as long as you create two separate task queue instances it should work ... i'll give that a try later, chime in if u find more about the problem

@icanzilb
Copy link
Owner

icanzilb commented Aug 4, 2014

it looks like what you describe works correctly for me. I added a nested queue demo to the demo app if you wanna have a look: 40b594d

@icanzilb icanzilb closed this as completed Aug 4, 2014
@alexbosworth
Copy link
Author

I converted my code to work like your demo and it does work, I'm not sure why I was seeing a different result

Thanks for this library and the demo, I am trying to get something to do basic asynchronous flow control like async.auto ( http://jakub.fedyczak.net/post/async-auto-best-feature-of-node-async/ ) and this is the closest I've found in Swift so far

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