A follow-up to http://yarfrontend.ru/talks/es6-generators/.
Goals:
- Iterate over readable stream, line by line, using generators.
- Write async code in synchronous way but hide implementation details as much as possible
Async wrapper live demo: http://jsfiddle.net/Olegas/v8Lujpr8/4/