Skip to content

How to fork a readable stream #16067

Answered by zachauten
kunalgoyal9 asked this question in Q&A
Discussion options

You must be logged in to vote

Deno.Reader isn't a ReadableStream, but you can convert it with readableStreamFromReader from the std lib. Then you can use ReadableStream.tee to read from it twice.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kitsonk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #16066 on September 28, 2022 07:10.