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

Function throwIfAborted

packages/runtime/src/tool-runtime.ts:2538–2540  ·  view source on GitHub ↗
(signal: AbortSignal)

Source from the content-addressed store, hash-verified

2536}
2537
2538function throwIfAborted(signal: AbortSignal): void {
2539 if (signal.aborted) throw abortErrorFromSignal(signal);
2540}
2541
2542function abortErrorFromSignal(signal: AbortSignal): Error {
2543 const reason = signal.reason;

Callers 2

askUserQuestionMethod · 0.70

Calls 1

abortErrorFromSignalFunction · 0.85

Tested by

no test coverage detected