diff options
author | 2023-08-03 16:31:05 -0700 | |
---|---|---|
committer | 2023-08-03 16:31:05 -0700 | |
commit | 112030481f3d89bb45cf9cecb2b21530bb53398c (patch) | |
tree | e2d57f7bd56179a2c6d84c4a7a18ef59b59f660a /docs/guides/read-file/stream.md | |
parent | 9574db355f1435f60214726b21f1ca5bb9d13f6c (diff) | |
download | bun-112030481f3d89bb45cf9cecb2b21530bb53398c.tar.gz bun-112030481f3d89bb45cf9cecb2b21530bb53398c.tar.zst bun-112030481f3d89bb45cf9cecb2b21530bb53398c.zip |
More guides and fixing links (#3960)bun-v0.7.2
* More guides
* WIP
* Updates
* Fix
Diffstat (limited to 'docs/guides/read-file/stream.md')
-rw-r--r-- | docs/guides/read-file/stream.md | 4 |
1 files changed, 2 insertions, 2 deletions
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 } ``` |