mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +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.
|
* A `CancelToken` is an object that can be used to request cancellation of an operation.
|
||||||
*
|
*
|
||||||
* @class
|
|
||||||
* @param {Function} executor The executor function.
|
* @param {Function} executor The executor function.
|
||||||
|
*
|
||||||
|
* @returns {CancelToken}
|
||||||
*/
|
*/
|
||||||
function CancelToken(executor) {
|
function CancelToken(executor) {
|
||||||
if (typeof executor !== 'function') {
|
if (typeof executor !== 'function') {
|
||||||
|
|||||||
Reference in New Issue
Block a user