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

Function sleepForRetry

packages/agent-core/src/loop/retry.ts:110–113  ·  view source on GitHub ↗
(delayMs: number, signal: AbortSignal)

Source from the content-addressed store, hash-verified

108}
109
110export async function sleepForRetry(delayMs: number, signal: AbortSignal): Promise<void> {
111 signal.throwIfAborted();
112 await abortable(sleep(delayMs), signal);
113}
114
115interface RetryErrorFields {
116 readonly errorName: string;

Callers 2

compactionRoundMethod · 0.90
chatWithRetryFunction · 0.85

Calls 3

abortableFunction · 0.90
throwIfAbortedMethod · 0.80
sleepFunction · 0.50

Tested by

no test coverage detected