Re: [streams] First draft at tee algorithms, for critique (#302)

> +          enqueue2(StructuredClone(value));
> +        } else {
> +          enqueue1(value);
> +          enqueue2(value);
> +        }
> +      },
> +      e => {
> +        error1(e);
> +        error2(e);
> +      }
> +    );
> +  }
> +
> +  function maybeCancelSource() {
> +    if (canceled1 && canceled2) {
> +      reader.cancel([cancelReason1, cancelReason2]);

Should we return a promise got from `reader.cancel(...)` here?

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/302/files#r26724967

Received on Thursday, 19 March 2015 02:01:00 UTC