-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于 Node.js 中的异步迭代器 #8084
关于 Node.js 中的异步迭代器 #8084
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
翻译得挺棒哒~ @lsvih @Isildur46
# About Async Iterators in Node.js | ||
> Async Iterators can be used when we don't know the values & end state we iterate over. Instead, we get promises eventually resolving to the usual object. | ||
# 关于 Node.js 中的异步迭代器 | ||
> 当我们在迭代过程中不清楚值和结束状态时,我们可以使用异步迭代器,用它来解决(resolve)普通对象并最终得到 promise。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> 当我们在迭代过程中不清楚值和结束状态时,我们可以使用异步迭代器,用它来解决(resolve)普通对象并最终得到 promise。 | |
> 当我们在迭代过程中不清楚值和结束状态时,我们可以使用异步迭代器,用它来解决(resolve)普通对象并最终得到 promise。 |
还是空行吧,Markdown 半个规则(
@@ -31,13 +31,13 @@ asyncIterable[Symbol.asyncIterator] = async function*() { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
删行吧(
@@ -56,11 +56,11 @@ async function printFileToConsole(path) { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
@@ -176,15 +181,15 @@ try { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
@@ -138,9 +143,9 @@ function catPics({ limit }) { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
@@ -98,7 +101,7 @@ function homebrewFetch(url) { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
|
||
These features have been available in browsers for some time as well, in Chrome since version 63, in Firefox since version 57 and in Safari since version 11.1. They are, however, currently unavailable in IE and Edge. | ||
浏览器支持这些功能已经有一段时间了,Chrome 从 63 版开始支持,Firefox 从 57 版开始支持,Safari 从 11.1 版开始支持。然而 IE 和 Edge 目前并不支持。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以以译注的方式给出,最好不要改原文的意思
Co-authored-by: Hoarfroster <[email protected]>
Co-authored-by: Hoarfroster <[email protected]>
Co-authored-by: Hoarfroster <[email protected]>
Co-authored-by: Hoarfroster <[email protected]>
已根据校对意见修改。 |
@Isildur46 您加上吧,本文只需要一位校对就行啦 |
@Isildur46 已经 merge 啦~ 快快麻溜发布到掘金然后给我发下链接,方便及时添加积分哟。 掘金翻译计划有自己的知乎专栏,你也可以投稿哈,推荐使用一个好用的插件。 |
收到 |
译文翻译完成,resolve #8076