2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

Adding cancellation support

This commit is contained in:
Nick Uraltsev
2016-09-17 11:52:56 -07:00
parent df50698d5a
commit 72dd897bb5
7 changed files with 139 additions and 10 deletions
+4
View File
@@ -34,6 +34,10 @@ axios.create = function create(defaultConfig) {
return createInstance(defaultConfig);
};
// Expose Cancel & CancelToken
axios.Cancel = require('./cancel/Cancel');
axios.CancelToken = require('./cancel/CancelToken');
// Expose all/spread
axios.all = function all(promises) {
return Promise.all(promises);