Clarify ReadableStreamBYOBReader.readAtLeast(minBytes, bufferArrayBufferView)
#16169
Labels
content:edit
Request for content edits
documentation
Documentation edits
product:workers
Related to Workers product
Existing documentation URL(s)
https://developers.cloudflare.com/workers/runtime-apis/streams/readablestreambyobreader
What changes are you suggesting?
As per the docs
What happens if the source stream ends with less than
minBytes
available? A little bit of sanity would say that it would resolve with the buffer partially filled with the available bytes, rather than rejecting, but that contradicts the absolute statement that "the promise will not resolve until at leastminBytes
have been read".Docs should explain what happens in the case of the stream ending with less bytes than requested.
Additional information
No response
The text was updated successfully, but these errors were encountered: