Compartilhar via


AbortSignalLike interface

Permite que a solicitação seja anulada ao disparar o evento "abort". Compatível com o abortSignal interno do navegador e polifills comuns.

Propriedades

aborted
addEventListener
dispatchEvent
onabort
removeEventListener

Detalhes da propriedade

aborted

aborted: boolean

Valor da propriedade

boolean

addEventListener

addEventListener: (type: "abort", listener: (this: AbortSignalLike, ev: Event) => any, options?: any) => void

Valor da propriedade

(type: "abort", listener: (this: AbortSignalLike, ev: Event) => any, options?: any) => void

dispatchEvent

dispatchEvent: (event: Event) => boolean

Valor da propriedade

(event: Event) => boolean

onabort

onabort: null | (this: AbortSignalLike, ev: Event) => any

Valor da propriedade

null | (this: AbortSignalLike, ev: Event) => any

removeEventListener

removeEventListener: (type: "abort", listener: (this: AbortSignalLike, ev: Event) => any, options?: any) => void

Valor da propriedade

(type: "abort", listener: (this: AbortSignalLike, ev: Event) => any, options?: any) => void