我眼中的 async/await
Open
- Dominant language
- No language data
- Stars
- 26
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
## 我眼中的 async/await
async / await 是 ES2017中引入的,为了使异步操作得更加方便,本质上 async 函数是 Generator 函数的语法糖。 async 函数书写的方式跟我们普通的函数书写方式一样,只不过是前面多了一个 async 关键字,并且函数返回的是一个 Promise 对象,所接收的值就是函数 return…
February 26, 2018 at 03:52PM
via Instapaper https://zhuanlan.zhihu.com/p/33932184
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.