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

docs(cancel/CancelToken)

This commit is contained in:
Jay
2022-06-02 20:56:32 +02:00
parent a009842af9
commit 31fbee888f
+2 -1
View File
@@ -5,8 +5,9 @@ var CanceledError = require('./CanceledError');
/**
* A `CancelToken` is an object that can be used to request cancellation of an operation.
*
* @class
* @param {Function} executor The executor function.
*
* @returns {CancelToken}
*/
function CancelToken(executor) {
if (typeof executor !== 'function') {