大家好,感谢提前寻求帮助。蓝鸟promise.all在中期承诺链捕捉并继续承诺
下面是什么我试图做
function1(){
throw some error();
}
function2() {
// dosomething successfully;
}
promise.resolve()
.then()
.then(
// here i want to do promise.all and if there is any exception i want to continue with chain
promise.all(function1, function2)
.catch() // handle error here only
)
.then()
.then()
.catch()
谁能帮我,我怎么能做到这一点。即在做promise.all时,如果有任何错误。我不想打破这个承诺链。
在问这个模式应该返回(预期的结果,其中语法修正,包括''内'前。这时Promise.all()'调用return')' – guest271314