- From: Takeshi Yoshino <notifications@github.com>
- Date: Mon, 01 Aug 2016 04:50:52 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Monday, 1 August 2016 11:51:22 UTC
> + return false; > + } > + > + return true; > +} > + > +function WritableStreamAbort(stream, reason) { > + const state = stream._state; > + if (state === 'closed') { > + return Promise.resolve(undefined); > + } > + if (state === 'errored') { > + return Promise.reject(stream._storedError); > + } > + > + assert(state === 'writable' || state === 'waiting' || state === 'closing'); First, converted `"waiting"` state into _backpressure internal slot by https://github.com/whatwg/streams/pull/488/commits/9cda324e1aa73dcbf52b658908a79afa5feba075 And tried eliminating the _backpressure variable by https://github.com/whatwg/streams/pull/488/commits/f5ebbeb01a4abf0204588d2718931e4a81a5f915 What do you think? The code after removing _backpressure is a bit slow. I'll check how much tomorrow. --- 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/488/files/dfa07172203b4c292cfb5a3fc88e821a1db7c3db#r72965118
Received on Monday, 1 August 2016 11:51:22 UTC