Results 4 comments of

我们知道Promise.then(),setTimeout是异步执行. 从js执行来说, setState肯定是同步执行. 所以这里讨论的同步和异步并不是指setState是否异步执行, 而是指调用setState之后this.state能否立即更新.

![image](https://user-images.githubusercontent.com/31319378/106101596-123f2f80-6179-11eb-9fa2-f8f2dd5de41b.png) 是的啊

> ``` > const [err, res] = await to(this.returnPromise()); > if (res) { > console.log("res", res); > console.log("second case normal process"); > } else { > console.log("err", err); > console.log("second...