AbortSignalLike interface

"중단" 이벤트가 발생할 때 요청을 중단하도록 허용합니다. 브라우저 기본 제공 AbortSignal 및 일반 폴리필과 호환됩니다.

속성

aborted

신호가 이미 중단되었는지를 나타냅니다.

메서드

addEventListener("abort", (this: AbortSignalLike, ev: any) => any, any)

새 "중단" 이벤트 수신기를 추가하고 "중단" 이벤트만 지원합니다.

removeEventListener("abort", (this: AbortSignalLike, ev: any) => any, any)

"중단" 이벤트 수신기를 제거하고 "중단" 이벤트만 지원합니다.

속성 세부 정보

aborted

신호가 이미 중단되었는지를 나타냅니다.

aborted: boolean

속성 값

boolean

메서드 세부 정보

addEventListener("abort", (this: AbortSignalLike, ev: any) => any, any)

새 "중단" 이벤트 수신기를 추가하고 "중단" 이벤트만 지원합니다.

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

매개 변수

type

"abort"

listener

(this: AbortSignalLike, ev: any) => any

options

any

removeEventListener("abort", (this: AbortSignalLike, ev: any) => any, any)

"중단" 이벤트 수신기를 제거하고 "중단" 이벤트만 지원합니다.

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

매개 변수

type

"abort"

listener

(this: AbortSignalLike, ev: any) => any

options

any