Re: [whatwg/encoding] Add Streams support (#72)

Fetch API uses "disturbed" property which is turned on when the first read is made and will never turned off, although I'm not a big fan of the property. Regarding 

> It also doesn't export any hooks to notify observers when a stream is locked

, I think having _decode_called_ boolean in the decoder and having the following logic in the decode function would work.

```
 if (!decode_called) {
   decode_called = true
   lock readable
   lock writable
 }
```

-- 
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/encoding/issues/72#issuecomment-278593950

Received on Thursday, 9 February 2017 09:46:38 UTC