Created
November 28, 2012 03:40
-
-
Save distracteddev/4158886 to your computer and use it in GitHub Desktop.
example.js
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
iterator = function(message, callback) { | |
var userId = message.userId | |
client.user(userId, function(user) { | |
callback(null, user); | |
}); | |
} | |
async.map(messages, iterator, function(err, mappedMessages) { | |
// hooray for async map. | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment