nl_tokens: Execute a list of commands in parallel and returns a Promise for all results . This function is a wrapper around * Q . allSettled * API .
pl_tokens: function sshCommandParallel ( connection , commands , fnOutput ) { var commandList = commands . map ( function ( command ) { return sshExecSingleCommand ( connection , command , fnOutput ) ; } ) ; return Q . allSettled ( commandList ) . then ( function ( results ) { return results . map ( function ( result ) { if ( result . state === "rejected" ) { return result . reason ; } else { return result . <mask> ; } } ) ; } ) ; }