On Thursday, April 24, 2014 10:11:21 AM UTC+2, Floby wrote:
>
> It seems to me that `yield` instructions block the same way that `wait` 
> blocks with thread or processes. async/wait is more or less threading 
> (cooperative threading).
>
>
Yes. The main difference is that you know where yield will transfer control 
(to the generator.next() call which started or resumed the generator) 
whereas a wait() call issued from a thread will just yield to the scheduler.
 

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to