2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-05 16:42:32 +03:00

Merge pull request #702 from capaj/patch-1

Clarifying status of cancelable promises proposal
This commit is contained in:
Nick Uraltsev
2017-03-01 20:58:16 -08:00
committed by GitHub
+1 -1
View File
@@ -473,7 +473,7 @@ axios.get('/user/12345', {
You can cancel a request using a *cancel token*.
> The axios cancel token API is based on the [cancelable promises proposal](https://github.com/tc39/proposal-cancelable-promises), which is currently at Stage 1.
> The axios cancel token API is based on the withdrawn [cancelable promises proposal](https://github.com/tc39/proposal-cancelable-promises).
You can create a cancel token using the `CancelToken.source` factory as shown below: