Closed tunnckoCore closed 10 years ago
No plans to support es6 generator functions yet.
I assume you're referring to the async
/await
es7 style functionality, which has not been standardized yet.
Mm nope, exactly. Refer something like this
.then(function * (filename) {
return JSON.parse(yield readFile(filename, 'utf8'))
})
.then(function * (jsonData) {
console.dir(jsonData)
}, console.error)
Ah, gotcha. Unfortunately no plans to do that anytime soon.
Suggestions? Or only
.then
to accept generator functions?