code: async function cancel(input, reason) {
    if (isStream(input) && input.cancel) {
      return input.cancel(reason);
    }
  }
docs: Cancel a stream.
  @param {ReadableStream|Uint8array|String} input
  @param {Any} reason
  @returns {Promise<Any>} indicates when the stream has been canceled
  @async