simple-async-class
v0.1.1
Published
Utility module that convert all Class's generator functions into function that returns promise.
Downloads
9
Readme
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)