You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our code base we abstract between node & browser via function that reads contents as AsyncIterable<Uint8Array>. This library internally has read that pretty much does that, which then is wrapped in a node Readable.
Maybe instead of providing web incompatible stream() method internal read() could be exposed instead ?
The text was updated successfully, but these errors were encountered:
This is more or less what I end up doing in https://github.com/Gozala/web-blob. It does subclass ReadableStream to provide no overhead access to it as AsyncIterable:
In our code base we abstract between node & browser via function that reads contents as
AsyncIterable<Uint8Array>
. This library internally hasread
that pretty much does that, which then is wrapped in a node Readable.Maybe instead of providing web incompatible
stream()
method internalread()
could be exposed instead ?The text was updated successfully, but these errors were encountered: