Cancelling Axios Requests [2]
In Cancelling Axios Requests [1], we explored how a cancelToken gets subscribed when passed into a request’s config.
This time, let’s look at the CancelToken implementation and how cancellation actually happens.
First, let’s examine the CancelToken implementation. https://github.com/axios/axios/blob/a52e4d9af51205959ef924f87bcf90c605e08a1e/lib/cancel/CancelToken.js#L12
// lib/cancel/CancelToken.js
```https://chat.openai.com/c/b52fef78-f0c7-4150-bf54-1837254253f8