Glossary coding Term Page
AbortController
Cancellation controller that tells fetch, streams, or other opt-in async work to stop.
Core Idea
AbortController exposes a signal object that connected APIs watch for an abort event. The moment you call controller.abort(), listeners reject with an AbortError, letting you free stuck network requests, stream readers, or long-running timers.
Why It Matters Here
Mathbong uses AbortController whenever fetch calls need timeouts or user-triggered cancel buttons. Pairing the controller with FormData submissions keeps dashboards and file uploads responsive even on unstable networks.