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:
parent
17d24e69a7
commit
c40de12fc0
@ -437,7 +437,7 @@ async function dbFuc(db) {
|
||||
}
|
||||
```
|
||||
|
||||
如果确实希望多个请求并发执行,可以使用`Promise.all`方法。
|
||||
如果确实希望多个请求并发执行,可以使用`Promise.all`方法。当三个请求都会`resolved`时,下面两种写法效果相同。
|
||||
|
||||
```javascript
|
||||
async function dbFuc(db) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user