On Wednesday, August 7, 2013 12:17:12 AM UTC+2, Mark Hahn wrote:
>
> > Always assume that you will be suspended any time you have a yield or 
> yield* 
>
> How do you know any of this you see a function call?  Only the function 
> definition looks different.  Tell me which is these will yield ..
>
> a()
> b()
> c()
>
>
None of them will yield!

If you write:

a()
yield b()
c()

Then you will yield on b() (but your code must be inside a function* 
otherwise it won't compile).

That's the whole point about "single frame continuation": you cannot hide 
the yield. If you do no see a yield you are sure that the code runs to 
completion. 

-- 
-- 
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/groups/opt_out.


Reply via email to