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

does Async.runSync use fibers? #3

Open
yanndebelgique opened this issue Feb 12, 2015 · 5 comments
Open

does Async.runSync use fibers? #3

yanndebelgique opened this issue Feb 12, 2015 · 5 comments

Comments

@yanndebelgique
Copy link

When you say stops execution is it blocking until you call done()?

@arunoda
Copy link
Member

arunoda commented Feb 12, 2015

Yes it blocks the execution of that fiber until you call done

@yanndebelgique
Copy link
Author

Ok but it still allows the event loop to keep executing instructions on the stack?

@yanndebelgique
Copy link
Author

Basically my question is if using runSync blocks the event loop because I've heard this is bad thing to do.

@arunoda
Copy link
Member

arunoda commented Feb 12, 2015

No no. It doesn't block the event loop.
On 2015 පෙබ 12, බ්‍රහස් at ප.ව. 4.56 Yann Buydens notifications@github.com
wrote:

Basically my question is if using runSync blocks the event loop because
I've heard this is bad thing to do.


Reply to this email directly or view it on GitHub
#3 (comment)
.

@yanndebelgique
Copy link
Author

ok awesome. this is a pretty sweet utility!

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