Question
Does Deno's FsFile.readable automatically close the file when the stream is exhausted?
Given the following code:
const file = await Deno.open(fsPathname, { read: true })
return new Response(file.readable, { status: 200 })
Will FsFile.readable
automatically close the file once the stream has been exhausted? The documentation doesn't mention this. If the answer is 'no' then I don't see how you close the file without seriously unneeded complexity.
3 50
3