meteorhacks / meteor-async

Set of async utilities to work with NPM modules inside Meteor
MIT License
63 stars 4 forks source link

does Async.runSync use fibers? #3

Open yanndebelgique opened 9 years ago

yanndebelgique commented 9 years ago

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

arunoda commented 9 years ago

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

yanndebelgique commented 9 years ago

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

yanndebelgique commented 9 years ago

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

arunoda commented 9 years ago

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 https://github.com/meteorhacks/meteor-async/issues/3#issuecomment-74056153 .

yanndebelgique commented 9 years ago

ok awesome. this is a pretty sweet utility!