Cancel fetch requests and async operations cleanly ✋
`AbortController` gives you a signal to pass to fetch(), event listeners, and other async APIs.
⋅ Use AbortSignal.timeout() for timeouts
⋅ Composable with AbortSignal.any()
Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/API/AbortController
MDN Web Docs
@mdn@mastodon.social
The official MDN Web Docs account. We deliver the best web docs around. Visit → https://mdn.dev Contribute → https://mdn.dev/community
mastodon.social
MDN Web Docs
@mdn@mastodon.social
The official MDN Web Docs account. We deliver the best web docs around. Visit → https://mdn.dev Contribute → https://mdn.dev/community
mastodon.social
@mdn@mastodon.social
·
Mar 15, 2026
8
0
5
Loading comments...