- From: Takeshi Yoshino <notifications@github.com>
- Date: Tue, 02 Aug 2016 01:56:11 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Tuesday, 2 August 2016 08:56:50 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');
After removing `"waiting"`
fd41dd1ce4cbdc1afb8d764200b315b1a5f723b4
duration: 22.5s
Before removing `"waiting"`
d08b7c86de53a64755e25e32ddfde37847b3f701
duration: 11.4s
Twice slower
---
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#r73118233
Received on Tuesday, 2 August 2016 08:56:50 UTC