simple-async-class

Utility module that convert all Class's generator functions into function that returns promise.


Keywords
async, class, generator
License
MIT
Install
npm install simple-async-class@0.1.0

Documentation

simple async class

A simple utility module to convert every generator function in a Class into a function that returns promise

Install with:

npm install simple-async-class

Usage Example

const asyncClass = require('simple-async-class')

class MyClass {
  * doSomething() {
    // yield ...
  }
}

module.exports = asyncClass(MyClass)