Created
February 3, 2016 14:22
-
-
Save domachine/6c1227e33ef3ade7bae0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function *myGenerator() { | |
const a = yield { fn: performingIO }; | |
return a; | |
} | |
const it = myGenerator(); | |
assert.deepEqual(it.next(), { value: { fn: performingIO }, done: false }); | |
assert.deepEqual(it.next(34), { value: 34, done: true }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment