4 ms·
What's wrong with a `Read` `Write` interface like every other language? const buffer = new UInt8Array(256) const bytesRead = await reader.read(buffer)
by apatheticonion 8mo ago
What's wrong with a `Read` `Write` interface like every other language?
const buffer = new UInt8Array(256)
const bytesRead = await reader.read(buffer)
if (bytesRead === 0) {
// Done
return
}