simple-async-class

0.1.1 • Public • Published

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)

Readme

Keywords

Package Sidebar

Install

npm i simple-async-class

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • icmpecho