return reduce(cmds, function(responses, cmd) {
return processor(cmd).then(function(response) {
responses.push(response); // or whatever
return responses;
})
}, [])
(node:7520) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): manual rejection in processor
**Command Processing Errors**
manual rejection in processor
uCOMmandIt > (node:7520) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 2)
FINAL response back [ 'manual resolution in processor' ]
return processor(cmds[0]);