[whatwg/streams] Can pipeTo() be synchronous? (Issue #1243)

Consider the following code:
```js
let synchronous;
new ReadableStream({
  pull(controller) {
    synchronous = true;
    controller.enqueue();
    synchronous = false;
  }
}).pipeTo(new WritableStream({
  write() {
    console.log(synchronous);
  }
});
```

1. Is this allowed to print `true`?
2. Should it be allowed to print `true`?
3. Is an implementation which prints `true` web-compatible?

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

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

Received on Friday, 14 October 2022 09:54:54 UTC