Re: [whatwg/streams] Returning buffers to the underlying source (Issue #1217)

Yeah, I encouraged @reillyeon to file this so we could have an interesting discussion; to be clear, not urgent :).

My first thought when he described this was

```js
const reader = rs.getReader("managed-view");
const { done: done1, value: value1, release: release1 } = await reader.read();

// ... later ...
release1();

const { done: done2, value: value2, release: release2 } = await reader.read();
```

with the semantics that `value1` and `value2` are distinct `Uint8Array`s, over distinct `ArrayBuffer` objects, but with the same backing "shared" memory.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1217#issuecomment-1035678402
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/issues/1217/1035678402@github.com>

Received on Friday, 11 February 2022 00:33:42 UTC