cancel(reason) {
    if (this.locked) {
      return Promise.reject(new TypeError('Cannot cancel a locked stream'));
    }
    return this.cancelInternal(reason);
  }
Cancels the ReadableStream with an optional reason.
https://streams.spec.whatwg.org/#rs-cancel
@param {*} reason
@return {!Promise<undefined>}
@override