(controller: AbortController, ms: number, label: string)
| 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 | // 配置管理器 |
| 77 | class ZprConfigManager { |
| 78 | private static db: any = null; |
| 79 | private static initialized = false; |
| 80 | private static configPath: string; |
| 81 | private static backupPath: string; |
no test coverage detected