MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / scheduleAbort

Function scheduleAbort

zpr/zpr.ts:69–78  ·  view source on GitHub ↗
(controller: AbortController, ms: number, label: string)

Source from the content-addressed store, hash-verified

67 if (lifecycle) {
68 const handle = lifecycle.setTimeout(() => controller.abort(), ms, { label });
69 return () => clearTimeout(handle);
70 }
71
72 const handle = setTimeout(() => controller.abort(), ms);
73 return () => clearTimeout(handle);
74}
75
76// 配置管理器
77class ZprConfigManager {
78 private static db: any = null;
79 private static initialized = false;
80 private static configPath: string;
81 private static backupPath: string;

Callers 2

downloadSingleImageFunction · 0.85
getResultFunction · 0.85

Calls 1

abortMethod · 0.65

Tested by

no test coverage detected