writableStream.abort([reason])


  • reason <any>
  • 返回:一个以 undefined 解决的 Promise。

突然终止 WritableStream。所有排队的写入操作将被取消,并且其相关的承诺将被拒绝。

【Abruptly terminates the WritableStream. All queued writes will be canceled with their associated promises rejected.】