MCPcopy
hub / github.com/OpenCoworkAI/open-codesign / attachAbortSignal

Function attachAbortSignal

packages/core/src/agent.ts:1305–1312  ·  view source on GitHub ↗
(target: Agent)

Source from the content-addressed store, hash-verified

1303 };
1304
1305 const attachAbortSignal = (target: Agent): void => {
1306 if (!input.signal) return;
1307 if (input.signal.aborted) {
1308 target.abort();
1309 } else {
1310 input.signal.addEventListener('abort', () => target.abort(), { once: true });
1311 }
1312 };
1313
1314 let agent = createRetryAgent(historyAsAgentMessages);
1315

Callers 1

generateViaAgentFunction · 0.85

Calls 1

abortMethod · 0.80

Tested by

no test coverage detected