流与异步生成器和异步迭代器的兼容性
【Streams compatibility with async generators and async iterators】
随着 JavaScript 中对异步生成器和迭代器的支持,异步生成器现在实际上已经成为一种一流的语言级流构造。
【With the support of async generators and iterators in JavaScript, async generators are effectively a first-class language-level stream construct at this point.】
下面提供了一些使用 Node.js 流与异步生成器和异步迭代器的常见互操作情况。
【Some common interop cases of using Node.js streams with async generators and async iterators are provided below.】