Skip to content

Commit

Permalink
refactor(op_crate/fetch): align streams to spec (denoland/deno#9103)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk authored and denobot committed Feb 1, 2021
1 parent 3b352a3 commit 9597b33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion async/pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ export function pooledMap<T, R>(
await Promise.all(executing);
writer.close();
})();
return res.readable.getIterator();
return res.readable[Symbol.asyncIterator]();
}
2 changes: 1 addition & 1 deletion io/streams_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 9597b33

Please sign in to comment.