AbortSignalLike interface
允許在引發「中止」事件時中止要求。 與瀏覽器內建的 AbortSignal 和一般 polyfill 相容。
屬性
aborted | |
add |
|
dispatch |
|
onabort | |
remove |
屬性詳細資料
aborted
aborted: boolean
屬性值
boolean
addEventListener
addEventListener: (type: "abort", listener: (this: AbortSignalLike, ev: Event) => any, options?: any) => void
屬性值
(type: "abort", listener: (this: AbortSignalLike, ev: Event) => any, options?: any) => void
dispatchEvent
dispatchEvent: (event: Event) => boolean
屬性值
(event: Event) => boolean
onabort
onabort: null | (this: AbortSignalLike, ev: Event) => any
屬性值
null | (this: AbortSignalLike, ev: Event) => any
removeEventListener
removeEventListener: (type: "abort", listener: (this: AbortSignalLike, ev: Event) => any, options?: any) => void
屬性值
(type: "abort", listener: (this: AbortSignalLike, ev: Event) => any, options?: any) => void