diff options
Diffstat (limited to 'std')
-rw-r--r-- | std/async/pool.ts | 2 | ||||
-rw-r--r-- | std/io/streams_test.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/std/async/pool.ts b/std/async/pool.ts index 77ac8f0bd..8aeb2671d 100644 --- a/std/async/pool.ts +++ b/std/async/pool.ts @@ -42,5 +42,5 @@ export function pooledMap<T, R>( await Promise.all(executing); writer.close(); })(); - return res.readable.getIterator(); + return res.readable[Symbol.asyncIterator](); } diff --git a/std/io/streams_test.ts b/std/io/streams_test.ts index 5017b1f4f..594fc2357 100644 --- a/std/io/streams_test.ts +++ b/std/io/streams_test.ts @@ -181,7 +181,7 @@ Deno.test("toReadableCheck", async function (): Promise<void> { const writableStream = readableStreamFromAsyncIterator(iter); const decoder = new TextDecoder(); - for await (const chunk of writableStream.getIterator()) { + for await (const chunk of writableStream) { readChunks.push(decoder.decode(chunk)); } |