MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / timeoutMessage

Function timeoutMessage

packages/kernel/runtime-quickjs/src/index.ts:109–110  ·  view source on GitHub ↗
(timeoutMs: number)

Source from the content-addressed store, hash-verified

107const looksLikeInterruptedError = (message: string): boolean => /\binterrupted\b/i.test(message);
108
109const timeoutMessage = (timeoutMs: number): string =>
110 `QuickJS execution timed out after ${timeoutMs}ms`;
111
112const normalizeExecutionError = (cause: unknown, deadlineMs: number, timeoutMs: number): string => {
113 const message = toErrorMessage(cause);

Callers 4

normalizeExecutionErrorFunction · 0.85
drainJobsFunction · 0.85
waitForDeferredsFunction · 0.85
evaluateInQuickJsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected