dosomething successfully; .then() // here i want to do promise.alland if there is any exception i want to continue with chain
promise.all(function1, function2)如果其中有任何错误,则执行promise.all。我不想打破这条承诺链。
我陷入困境的部分是,我无法处理所有的拒绝(如果多个承诺失败)。如果我使用Promise.all()做同样的事情,它会很好(会的)!因为在Promise.all()中,如果1承诺失败,结果也会被拒绝)。我的问题是:如何处理Promise.each()中的拒绝?connection.query(query, function(err, result){ })}
function api