@tech_userreport.com/parallel
v2.0.3
Published
Run tasks in parallel waiting for them to respond with result
Downloads
15
Readme
Run tasks in parallel waiting for them to respond with result
parallel = require "@tech_userreport.com/parallel"
func1 = (done) ->
done null, 1
func2 = (done) ->
setTimeout () ->
done null, 2
, 100
parallel [ func1, func2 ], (err, results) ->
console.log results[0] # 1
console.log results[1] # 2