MCPcopy Create free account
hub / github.com/apache/maka / inheritExecutionAbort

Method inheritExecutionAbort

packages/runtime/src/runtime-kernel.ts:1855–1867  ·  view source on GitHub ↗
(execution: PendingExecutionClaim)

Source from the content-addressed store, hash-verified

1853 }
1854
1855 private inheritExecutionAbort(execution: PendingExecutionClaim): {
1856 abortController: AbortController;
1857 release(): void;
1858 } {
1859 const abortController = new AbortController();
1860 const onAbort = (): void => abortController.abort(execution.abortController.signal.reason);
1861 execution.abortController.signal.addEventListener('abort', onAbort, { once: true });
1862 if (execution.abortController.signal.aborted) onAbort();
1863 return {
1864 abortController,
1865 release: () => execution.abortController.signal.removeEventListener('abort', onAbort),
1866 };
1867 }
1868
1869 private async finalizeFailedRunStart(
1870 owners: RuntimeRunOwnerScope,

Callers 2

runAgentTurnMethod · 0.95
runAgentContinuationMethod · 0.95

Calls 3

onAbortFunction · 0.70
addEventListenerMethod · 0.65
removeEventListenerMethod · 0.65

Tested by

no test coverage detected