Coroutines Generators

suggest change
const promiseReturningFunction = Promise.coroutine(function* (file) {
  const data = yield fs.readFileAsync(file) // this returns a Promise and resolves to the file contents

  return data.toString().toUpperCase()
})

promiseReturningFunction('file.txt').then(console.log)

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Blueburid promises:
* Coroutines Generators

Table Of Contents
1 npm
41 cli
43 grunt
59 Hack
60 Blueburid promises
64 ES6
67 Redis
69 MongoDB
86 MongoDB
87 Lodash
91 CORS
105 N-API
108 Require