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

Function onAbort

packages/agent-core/test/tools/agent.test.ts:807–809  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

805 ? legacyOptions!.signal
806 : profileNameOrOptions.signal;
807 const onAbort = (): void => {
808 reject(signal.reason);
809 };
810 if (signal.aborted) onAbort();
811 else signal.addEventListener('abort', onAbort, { once: true });
812 }),

Callers 2

agent.test.tsFile · 0.70
resolveExecutionMethod · 0.50

Calls 1

rejectFunction · 0.85

Tested by

no test coverage detected