/Async-Await

Polyfill for async functions and await that allows yield to be used for await.

Primary LanguageJavaScript

Async-Await

Polyfill for async functions and await that allows yield to be used for await.

Usage:

var test = async(function*() {
 let result = yield(testpromise())
 return(result)
})

test.then(function(result) {
 console.log(result)
})

Run Tests