Re: [whatwg/streams] Clarify that a pull source doesn't need to wait in pull() (#1014)

Yeah, I'm not sure about it either, just thinking out loud. The examples above are purely hypothetical, I haven't actually come across a real-world use case where `pull()` does something else *after* `controller.enqueue()`.

Then again, passing an `AbortSignal` would make for a nice parallel between readable and writable streams:
* A readable stream waits for a pending `pull()` before calling `cancel()`, but you can skip the wait by inspecting the signal passed to `pull()`.
* A writable stream waits for a pending `write()` before calling `abort()`, but you can skip the wait by inspecting the signal passed to `write()`.

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

Received on Friday, 13 September 2019 13:50:47 UTC