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 Jan 14, 2021
1 parent bc9358f commit cd1abd3
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 cd1abd3

Please sign in to comment.