()
| 125 | |
| 126 | // 已作废的请求永不 settle:避免旧数据覆盖新数据,也避免在调用方触发无意义的错误处理与空态闪烁。 |
| 127 | function neverSettle<T>(): Promise<T> { |
| 128 | return new Promise<T>(() => {}) |
| 129 | } |
| 130 | |
| 131 | /** 绑定当前 epoch 的 GET:被 abortAnalyticsRequests() 取消时静默作废。 */ |
| 132 | export function analyticsGet<T>(path: string): Promise<T> { |
no outgoing calls
no test coverage detected