Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 252 Bytes

Readme.md

File metadata and controls

10 lines (9 loc) · 252 Bytes

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(...)