mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
doc: remove redunant await calls from stream docs
PR-URL: https://github.com/nodejs/node/pull/41592 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Nitzan Uziely <linkgoron@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
22792c8632
commit
119519e1da
1 file changed
+3
-3
+3
-3
@@ -1771,7 +1771,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).map((x) => x * 2)) {
|
||||
}
|
||||
// With an asynchronous mapper, making at most 2 queries at a time.
|
||||
const resolver = new Resolver();
|
||||
const dnsResults = await Readable.from([
|
||||
const dnsResults = Readable.from([
|
||||
'nodejs.org',
|
||||
'openjsf.org',
|
||||
'www.linuxfoundation.org',
|
||||
@@ -1816,7 +1816,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).filter((x) => x > 2)) {
|
||||
}
|
||||
// With an asynchronous predicate, making at most 2 queries at a time.
|
||||
const resolver = new Resolver();
|
||||
const dnsResults = await Readable.from([
|
||||
const dnsResults = Readable.from([
|
||||
'nodejs.org',
|
||||
'openjsf.org',
|
||||
'www.linuxfoundation.org',
|
||||
@@ -1874,7 +1874,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).filter((x) => x > 2)) {
|
||||
}
|
||||
// With an asynchronous predicate, making at most 2 queries at a time.
|
||||
const resolver = new Resolver();
|
||||
const dnsResults = await Readable.from([
|
||||
const dnsResults = Readable.from([
|
||||
'nodejs.org',
|
||||
'openjsf.org',
|
||||
'www.linuxfoundation.org',
|
||||
|
||||
Reference in new issue
Block a user