Be able to yield an iterable for parallel execution
Author: dashedCreated Sep 10, 2015Updated May 12, 2017
My usecase with collections from https://github.com/facebook/immutable-js:
co.wrap(function*(list) {
// list is Immutable.Map
const results = yield list.map(function(id) {
return new Promise(function(resolve, reject) {
// ...
});
}
// ...
});Source: tj/co