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

Function isUserCancellation

packages/agent-core/src/utils/abort.ts:31–33  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

29}
30
31export function isUserCancellation(value: unknown): value is UserCancellationError {
32 return value instanceof UserCancellationError;
33}
34
35export function abortable<T>(promise: Promise<T>, signal: AbortSignal): Promise<T> {
36 if (signal.aborted) return Promise.reject(abortReason(signal));

Callers 7

abort.test.tsFile · 0.90
manager.test.tsFile · 0.90
launchErrorMessageFunction · 0.90
constructorMethod · 0.90
failedAttemptOutcomeMethod · 0.90
abortedToolOutputFunction · 0.90
runOneTurnMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected