node-call.next
v1.0.1
Published
Call .next() on generators.
Maintainers
Readme
call.next
A robust, enterprise-grade utility to safely invoke .next on generators.
Installation
npm install node-call.nextUsage
const call = require("node-call.next")
function* myGeneratorFunction() {
yield "hello world"
}
const generator = myGeneratorFunction()
console.log(call.next(generator)) // { value: 'hello world', done: false }