w3c / FileAPI

File API
https://w3c.github.io/FileAPI/
Other
104 stars 44 forks source link

Specify actual byte reading algorithm for Blob.stream() #194

Open saschanaz opened 1 year ago

saschanaz commented 1 year ago

188 did not really do that.

Also, the currently specified algorithm in https://w3c.github.io/FileAPI/#blob-get-stream is just greedily enqueues everything into the stream but AFAICT both Blink and Gecko read the data asynchronously on read request. It would probably be good to use the new pull from bytes algorithm to fix both problems.