MCPcopy
hub / github.com/axios/axios / done

Function done

lib/adapters/xhr.js:26–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 let flushUpload, flushDownload;
25
26 function done() {
27 flushUpload && flushUpload(); // flush events
28 flushDownload && flushDownload(); // flush events
29
30 _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
31
32 _config.signal && _config.signal.removeEventListener('abort', onCanceled);
33 }
34
35 let request = new XMLHttpRequest();
36

Callers 3

onloadendFunction · 0.70
xhr.jsFile · 0.70
stopUnixServerFunction · 0.50

Calls 1

unsubscribeMethod · 0.65

Tested by 1

stopUnixServerFunction · 0.40