I’m using async and trying to get data to pass back. Is this possible or do I need to use another library approach?
Ideally, I’d like to do something like:
async.forEach(txids, processTransaction, function(asyncErr, outputTotal) {
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think you want
async.reduce(), similar toArray.reduce()but asynchronous.The given example is:
You would probably do something similar to:
I’m not sure what
processTransactionreturns, so I’m not sure what yourmemo(orinitialValue) should be.