1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-27 20:32:21 +00:00

Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages

This commit is contained in:
ruanyf 2017-09-14 08:48:13 +08:00
commit 1fd3254458

View File

@ -102,7 +102,7 @@ Promise 的最大问题是代码冗余,原来的任务被 Promise 包装了一
举例来说,读取文件的协程写法如下。
```javascript
function *asyncJob() {
function* asyncJob() {
// ...其他代码
var f = yield readFile(fileA);
// ...其他代码