bind-generator
v1.0.0
Published
Change the scope of a generator function
Downloads
9
Readme
bind-generator
Change the scope of a generator function
let bindGenerator = require("bind-generator");
let scopedGenerator = bindGenerator(instance, instance.myGeneratorFunction);
yield scopedGenerator();