abortController.abort([reason])


  • reason <any> 可选的原因,可在 AbortSignalreason 属性中检索。

触发中止信号,使 abortController.signal 触发 'abort' 事件。

  • reason <any> An optional reason, retrievable on the AbortSignal's reason property.

Triggers the abort signal, causing the abortController.signal to emit the 'abort' event.