1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

docs(async): edit async

This commit is contained in:
ruanyf 2017-06-28 20:34:42 +08:00
parent 17d24e69a7
commit c40de12fc0

View File

@ -437,7 +437,7 @@ async function dbFuc(db) {
}
```
如果确实希望多个请求并发执行,可以使用`Promise.all`方法。
如果确实希望多个请求并发执行,可以使用`Promise.all`方法。当三个请求都会`resolved`时,下面两种写法效果相同。
```javascript
async function dbFuc(db) {