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:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user