readableStreamDefaultReader.cancel([reason])


新增于: v16.5.0
  • reason <any>

  • 返回:undefined 兑现的 promise。

    \Returns: A promise fulfilled with undefined.

取消 <ReadableStream> 并返回一个在基础流被取消时完成的 promise。

\Cancels the <ReadableStream> and returns a promise that is fulfilled when the underlying stream has been canceled.

AltStyle によって変換されたページ (->オリジナル) /