Re: [whatwg/streams] Add checks before Close and Enqueue in tee() (#1027)

Should we consider moving these checks into Close() and Enqueue() themselves, with an early-return if they fail? I think the original idea of separating them was that so callers that don't go through the public API could do a bit less work, but things have evolved such that that's not a great idea, so maybe we should inline them to avoid future contract violations...

-- 
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/pull/1027#issuecomment-581572059

Received on Monday, 3 February 2020 19:14:34 UTC