cof
cof
stop了整个Promise chain,最后要catch到这个stop的,做后续处理,你这个貌似没有考虑这一层。 类似于 promise.resolve(1).then().catch(promise.stop).then().then().....whenStop(//do sth)
奥,我表达有误,是想这个样子的 promise.resolve(1).then().catch((err)=>{promise.stop(err)}).then().then().....whenStop(//do sth) 就是说,不光要在需要stop的地方停止promise chain,**我还要需要知道在哪里停止了,并且,停止后我需要后续处理** 需要有whenstop((msg) => {//handle stop msg}) 我试了各种重写then的方式,无果,不知阁下有何见解 ps:使用next可以
> @ZWkang Please see #59 for a potential explanation do not call `next()` in catch can fix this bug? becuase it will be called in then chain if use onError...