Re: [streams] getting and releasing reader (#297)

I think it is not so bad to not support cancellation of `json()` etc. At least, to not support them until we have a better scheme for cancellable promises in general. When we have such a scheme (which might be a `.cancel()` method on the promise, or might be something like `const canceller = new Canceller(); fetch({ ..., canceler }); /* later */ canceller.cancel();`) we can retrofit `json()` etc. to allow it. Until then we just say that they cannot be interrupted---which is true today.

On the other hand the forcible releaseLock() is an interesting idea... Kind of counterintuitive, but I will think about it more.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/297#issuecomment-81395077

Received on Monday, 16 March 2015 04:00:34 UTC