Skip to content

Instantly share code, notes, and snippets.

@Maciek416
Created May 3, 2013 15:11
Show Gist options
  • Save Maciek416/5509716 to your computer and use it in GitHub Desktop.
Save Maciek416/5509716 to your computer and use it in GitHub Desktop.
# async example for Haifeng
iterator = (item, next) ->
result = item.split("").reverse().join()
next(result)
finished = (err, results) ->
console.log("finished with results: ", results)
async.map(["banana","apple","orange"], iterator, finished)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment