Aaron Powell (2015-05-14T06:30:07.000Z)
I've done a few blog posts on the topic:
http://www.aaron-powell.com/posts/2014-01-13-functions-that-yield-mutliple-times.html
http://www.aaron-powell.com/posts/2014-01-18-calling-up-callbacks-with-yield.html
http://www.aaron-powell.com/posts/2014-01-28-cleaning-up-promises-wit-yield.html

Axel has blogged about them too - http://www.2ality.com/2013/06/iterators-generators.html


From: es-discuss [mailto:es-discuss-bounces at mozilla.org] On Behalf Of Mohan.Radhakrishnan at cognizant.com
Sent: Thursday, 14 May 2015 4:10 PM
To: es-discuss at mozilla.org
Subject: About generators

Hi,
        I have used simple generators but there seem to be some advanced usages.  I came across these git references from another post and I have looked at the code. What are some articles that explain these concepts for JS developers before delving into this type of code ? Is reading this code the only way ?

https://github.com/spion/genny
https://github.com/creationix/gen-run
https://github.com/tj/co
https://github.com/jmar777/suspend


Thanks,
Mohan



This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150514/cca8be6f/attachment.html>
d at domenic.me (2015-05-20T22:35:09.387Z)
I've done a few blog posts on the topic:

- http://www.aaron-powell.com/posts/2014-01-13-functions-that-yield-mutliple-times.html
- http://www.aaron-powell.com/posts/2014-01-18-calling-up-callbacks-with-yield.html
- http://www.aaron-powell.com/posts/2014-01-28-cleaning-up-promises-wit-yield.html

Axel has blogged about them too - http://www.2ality.com/2013/06/iterators-generators.html
d at domenic.me (2015-05-20T22:35:00.763Z)
I've done a few blog posts on the topic:
http://www.aaron-powell.com/posts/2014-01-13-functions-that-yield-mutliple-times.html
http://www.aaron-powell.com/posts/2014-01-18-calling-up-callbacks-with-yield.html
http://www.aaron-powell.com/posts/2014-01-28-cleaning-up-promises-wit-yield.html

Axel has blogged about them too - http://www.2ality.com/2013/06/iterators-generators.html