-
-
Save danielyogel/98f5b34abe0040ee579e to your computer and use it in GitHub Desktop.
promises generators for in loop.
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
co( | |
for (var i in list) { | |
try { | |
yield promiseMeSomething(list[i]); | |
} catch (err) { | |
console.log(err.message); | |
} | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
_(list).map(yield promiseMeSomething)
does not work...