I am using chaining for such code. I have tried to make async.map but it's now real mesh for me. How can I make this code more robust and right?
getValues = (callback) ->
client.get 'day:today', (err, reply) ->
return callback err if err
results = []
results.push reply.toString()
client.get 'day:ystd', (err, reply) ->
return callback err if err
results.push reply.toString()
callback null, results