3 ms·
Abort Controller is criminally underrated [video with text]
- Leftium 2y agoText version: https://kettanaito.com/blog/dont-sleep-on-abort-controller https://kettanaito.com/blog/dont-sleep-on-abort-controller I've been using abort controller to simplify cleanup of event listeners. However, I just learned abort controller could do other things like: - Abort after a timeout - Abort calls to fetch() - Make a custom function/method that can be aborted using the same interface