Skip to content

zxh19890103/async

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

a function to make a generator more like a async/await.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published