5 ms·
Generators are used to great effect in Ember thanks to the ember-concurrency[0] addon. It was far and away the most frequently talked-about topic at EmberConf l
by mwpmaybe 10y ago
Generators are used to great effect in Ember thanks to the ember-concurrency[0] addon. It was far and away the most frequently talked-about topic at EmberConf last week. If you're interested, I'd highly recommend machty's talk[1] from last year where he introduced it. His talk from last week was also very good, but it does not appear to be available yet.
I don't think it's currently using async generators (have yet to read the linked article), but I suspect this new language feature may lead to some improvements!
0. http://ember-concurrency.com http://ember-concurrency.com
1. https://vimeo.com/162329769 https://vimeo.com/162329769
- kabes 10y agoIs it only usable as an ember addon in the browser? It seems like this would be useful as a stand-alone library for node.js projects.
- mwpmaybe 10y agoTo the best of my understanding, yes, it's pretty well tied to Ember. Other options (such as redux-saga mentioned in a sibling comment) may be a better fit.
- aarpmcgee 10y agoAlso worth taking a look at redux-saga. ember-concurrency is nice and a good start, but redux-saga is a far more complete and testable solution for dealing with concurrency and side-effects anywhere you use redux (including ember).