MCPcopy
hub / github.com/axios/axios / CancelToken

Interface CancelToken

index.d.ts:576–583  ·  index.d.ts::CancelToken

Source from the content-addressed store, hash-verified

574}
575
576export interface CancelToken {
577 promise: Promise<Cancel>;
578 reason?: Cancel;
579 throwIfRequested(): void;
580 subscribe(listener: (cancel: Cancel | any) => void): void;
581 unsubscribe(listener: (cancel: Cancel | any) => void): void;
582 toAbortSignal(): AbortSignal;
583}
584
585export interface CancelTokenSource {
586 token: CancelToken;

Callers 18

xhr.jsFile · 0.65
http.jsFile · 0.65
constructorMethod · 0.65
esm-added-types.tsFile · 0.65
cjs-added-types.tsFile · 0.65
unsubscribeFunction · 0.65
factoryFunction · 0.65
doneFunction · 0.65
onFinishedFunction · 0.65
constructorMethod · 0.65

Implementers 1

CancelTokenlib/cancel/CancelToken.js

Calls

no outgoing calls

Tested by

no test coverage detected