(path: string)
| 130 | |
| 131 | /** 绑定当前 epoch 的 GET:被 abortAnalyticsRequests() 取消时静默作废。 */ |
| 132 | export function analyticsGet<T>(path: string): Promise<T> { |
| 133 | return get<T>(path, _analyticsController.signal).catch((err) => { |
| 134 | if (isAbortError(err)) return neverSettle<T>() |
| 135 | throw err |
| 136 | }) |
| 137 | } |
| 138 | |
| 139 | /** 绑定当前 epoch 的 POST:被 abortAnalyticsRequests() 取消时静默作废。 */ |
| 140 | export function analyticsPost<T>(path: string, body?: unknown): Promise<T> { |
no test coverage detected