Created
May 18, 2013 22:15
-
-
Save dmotz/5605944 to your computer and use it in GitHub Desktop.
key/value parallel async task handler in 6 lines of coffee
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
tgthr = (fns, cb, res = {}) -> | |
out = (k) -> -> | |
delete fns[k] | |
res[k] = arguments | |
cb res unless Object.keys(fns).length | |
v out k for k, v of fns |
Author
dmotz
commented
May 18, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment