mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-29 13:52:22 +00:00
更新
修改异步编程接口一个对象名称错误
This commit is contained in:
parent
53ed0a0a3b
commit
884c008313
@ -1357,7 +1357,7 @@ asyncIterator
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
const asyncIterable = createAsyncIterable(['a', 'b']);
|
const asyncIterable = createAsyncIterable(['a', 'b']);
|
||||||
const asyncIterator = someCollection[Symbol.asyncIterator]();
|
const asyncIterator = asyncIterable[Symbol.asyncIterator]();
|
||||||
|
|
||||||
asyncIterator
|
asyncIterator
|
||||||
.next()
|
.next()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user