AbortSignalLike interface
Permite que a solicitação seja abortada após o disparo do evento "abort". Compatível com o navegador built-in AbortSignal e polyfills comuns.
Propriedades
aborted | Indica se o sinal já foi abortado. |
Métodos
add |
Adicione um novo ouvinte de eventos "abort", suporte apenas o evento "abort". |
remove |
Remova o ouvinte de eventos "abort", suporte apenas o evento "abort". |
Detalhes de Propriedade
aborted
Indica se o sinal já foi abortado.
aborted: boolean
Valor de Propriedade
boolean
Detalhes de Método
addEventListener("abort", (this: AbortSignalLike, ev: any) => any, any)
Adicione um novo ouvinte de eventos "abort", suporte apenas o evento "abort".
function addEventListener(type: "abort", listener: (this: AbortSignalLike, ev: any) => any, options?: any)
Parâmetros
- type
-
"abort"
- listener
-
(this: AbortSignalLike, ev: any) => any
- options
-
any
removeEventListener("abort", (this: AbortSignalLike, ev: any) => any, any)
Remova o ouvinte de eventos "abort", suporte apenas o evento "abort".
function removeEventListener(type: "abort", listener: (this: AbortSignalLike, ev: any) => any, options?: any)
Parâmetros
- type
-
"abort"
- listener
-
(this: AbortSignalLike, ev: any) => any
- options
-
any