MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / timeoutSignal

Function timeoutSignal

apps/kimi-web/src/api/daemon/http.ts:30–36  ·  view source on GitHub ↗

AbortSignal.timeout with a fallback for older environments (jsdom).

()

Source from the content-addressed store, hash-verified

28
29/** AbortSignal.timeout with a fallback for older environments (jsdom). */
30function timeoutSignal(): AbortSignal | undefined {
31 try {
32 return AbortSignal.timeout(REQUEST_TIMEOUT_MS);
33 } catch {
34 return undefined;
35 }
36}
37
38function encodeBase32(value: number, length: number): string {
39 let out = '';

Callers 3

getBlobMethod · 0.85
postFormMethod · 0.85
requestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected