We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2fa2e65 + e0b4e6c commit 8de9acaCopy full SHA for 8de9aca
1-js/12-generators-iterators/2-async-iterators-generators/article.md
@@ -96,7 +96,7 @@ let range = {
96
*/!*
97
98
*!*
99
- // asyc next の中で、 "await" が使えます
+ // async next の中で、 "await" が使えます
100
await new Promise(resolve => setTimeout(resolve, 1000)); // (3)
101
102
@@ -250,7 +250,7 @@ for(let value of range) {
250
````smart header="内部的な違い"
251
技術的には、ジェネレータの詳細を覚えている読者であれば、内部的な違いに気づくかもしれません。
252
253
-非同期ジェネレータの場合、`generator.nex()` メソッドは非同期であり、promise を返します。
+非同期ジェネレータの場合、`generator.next()` メソッドは非同期であり、promise を返します。
254
255
通常のジェネレータでは、`result = generator.next()` を使用して値を取得します。非同期ジェネレータでは、次のように `await` を追加する必要があります:
256
0 commit comments