MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / isAbortError

Function isAbortError

src/services/utils/http.ts:122–124  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

120}
121
122function isAbortError(err: unknown): boolean {
123 return err instanceof DOMException && err.name === 'AbortError'
124}
125
126// 已作废的请求永不 settle:避免旧数据覆盖新数据,也避免在调用方触发无意义的错误处理与空态闪烁。
127function neverSettle<T>(): Promise<T> {

Callers 2

analyticsGetFunction · 0.85
analyticsPostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected