async-style

1.0.0 • Public • Published

A great tool to make a generator function more like async/await style.

const { _async } = require('sh-async')
_async(function* () {
    const s = yield 'Hello'
    const s2 = yield 'World'
    return s + s2
}).then(...).catch(...)

Package Sidebar

Install

npm i async-style

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

3.33 kB

Total Files

5

Last publish

Collaborators

  • zxh19890103