From 112030481f3d89bb45cf9cecb2b21530bb53398c Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Thu, 3 Aug 2023 16:31:05 -0700 Subject: More guides and fixing links (#3960) * More guides * WIP * Updates * Fix --- docs/guides/read-file/stream.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/guides/read-file') diff --git a/docs/guides/read-file/stream.md b/docs/guides/read-file/stream.md index 6b88c3672..ac4bd9e2f 100644 --- a/docs/guides/read-file/stream.md +++ b/docs/guides/read-file/stream.md @@ -13,10 +13,10 @@ const stream = await file.stream(); --- -The chunks of the stream can be consumed with `for await`. +The chunks of the stream can be consumed as an [async iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_async_iterator_and_async_iterable_protocols) using `for await`. ```ts -for await (const chunk of stream.values()) { +for await (const chunk of stream) { chunk; // => Uint8Array } ``` -- cgit v1.2.3