1.0.0 • Published 8 years ago
bind-generator v1.0.0
bind-generator
Change the scope of a generator function
let bindGenerator = require("bind-generator");
let scopedGenerator = bindGenerator(instance, instance.myGeneratorFunction);
yield scopedGenerator();
1.0.0
8 years ago