Home
last modified time | relevance | path

Searched refs:asIndexedPairs (Results 1 – 6 of 6) sorted by relevance

/third_party/node/test/parallel/
Dtest-stream-asIndexedPairs.mjs6 // asIndexedPairs with a synchronous stream
7 const pairs = await Readable.from([1, 2, 3]).asIndexedPairs().toArray();
9 const empty = await Readable.from([]).asIndexedPairs().toArray();
14 // asIndexedPairs works an asynchronous streams
16 const pairs = await asyncFrom([1, 2, 3]).asIndexedPairs().toArray();
18 const empty = await asyncFrom([]).asIndexedPairs().toArray();
27 const pairs = await infinite().asIndexedPairs().take(3).toArray();
29 const empty = await infinite().asIndexedPairs().take(0).toArray();
38 const p = Readable.from([1, 2, 3]).asIndexedPairs({ signal }).toArray();
45 await Readable.from([1, 2, 3]).asIndexedPairs({ signal }).toArray();
[all …]
Dtest-stream-iterator-helpers-test262-tests.mjs52 // asIndexedPairs/is-function
53 assert.strictEqual(typeof Readable.prototype.asIndexedPairs, 'function');
54 // asIndexedPairs/indexed-pairs.js
56 const indexedPairs = iterator.asIndexedPairs();
61 // asIndexedPairs/length.js
62 assert.strictEqual(Readable.prototype.asIndexedPairs.length, 0);
65 'asIndexedPairs'
/third_party/node/lib/internal/streams/
Doperators.js219 function asIndexedPairs(options = undefined) { function
227 return async function* asIndexedPairs() { generator
441asIndexedPairs: deprecate(asIndexedPairs, 'readable.asIndexedPairs will be removed in a future ver… property
/third_party/node/doc/api/
Dstream.md2453 ##### `readable.asIndexedPairs([options])`
2460 description: Using the `asIndexedPairs` method emits a runtime warning that
2478 const pairs = await Readable.from(['a', 'b', 'c']).asIndexedPairs().toArray();
/third_party/node/doc/changelogs/
DCHANGELOG_V17.md683 …https://github.com/nodejs/node/commit/311050ebaa)] - **stream**: add asIndexedPairs (Benjamin Grue…
DCHANGELOG_V18.md1378 …//github.com/nodejs/node/commit/585d62848e)] - **stream**: deprecate asIndexedPairs (Chemi Atlow) …