MCPcopy
hub / github.com/xifangczy/cat-catch / stop

Method stop

js/m3u8.downloader.js:68–75  ·  view source on GitHub ↗

* 停止下载 没有目标 停止所有线程 * @param {number} index 停止下载目标

(index = undefined)

Source from the content-addressed store, hash-verified

66 * @param {number} index 停止下载目标
67 */
68 stop(index = undefined) {
69 if (index !== undefined) {
70 this.controller[index] && this.controller[index].abort();
71 return;
72 }
73 this.controller.forEach(controller => { controller.abort() });
74 this.state = 'abort';
75 }
76 /**
77 * 检查对象是否错误列表内
78 * @param {object} fragment 切片对象

Callers 14

startFunction · 0.95
destroyMethod · 0.95
downloadNewFunction · 0.95
TipsFunction · 0.80
addHtmlFunction · 0.80
hFunction · 0.80
aFunction · 0.80
jquery.min.jsFile · 0.80
recorder2.jsFile · 0.80
startRecordingFunction · 0.80
recorder.jsFile · 0.80
autoSave1Function · 0.80

Calls 2

abortMethod · 0.80
forEachMethod · 0.45

Tested by

no test coverage detected