readableStream.cancel([reason])


  • reason <any>
  • 返回:一旦取消完成,将返回一个以 undefined 作为结果的已完成 Promise。