Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 206 Bytes

File metadata and controls

11 lines (8 loc) · 206 Bytes

abortcontroller

AbortController cancels fetch requests and other async operations.

const ctrl = new AbortController()
fetch(url, { signal: ctrl.signal })
ctrl.abort()

Learned on 2025-05-23