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