Created
October 17, 2014 15:21
-
-
Save bekzod/1d868f43c84c2bd8281d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| var async = require('async'); | |
| var array = []; | |
| var work = function(item, cb){ | |
| setTimeout(10,cb.bind(null,'result')); | |
| }; | |
| async.each(array,work,function(err,res){ | |
| console.log(err,res); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment