GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: remove redunant `await` calls from stream docs · nodejs/node@f33e831

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • stream.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/stream.md‎

Copy file name to clipboardExpand all lines: doc/api/stream.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1716,7 +1716,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).map((x) => x * 2)) {
17161716
}
17171717
// With an asynchronous mapper, making at most 2 queries at a time.
17181718
const resolver = new Resolver();
1719-
const dnsResults = await Readable.from([
1719+
const dnsResults = Readable.from([
17201720
'nodejs.org',
17211721
'openjsf.org',
17221722
'www.linuxfoundation.org',
@@ -1761,7 +1761,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).filter((x) => x > 2)) {
17611761
}
17621762
// With an asynchronous predicate, making at most 2 queries at a time.
17631763
const resolver = new Resolver();
1764-
const dnsResults = await Readable.from([
1764+
const dnsResults = Readable.from([
17651765
'nodejs.org',
17661766
'openjsf.org',
17671767
'www.linuxfoundation.org',

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.