MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / resolveParseTimeoutMs

Function resolveParseTimeoutMs

src/extraction/parse-pool.ts:106–112  ·  view source on GitHub ↗
(envVal: string | undefined)

Source from the content-addressed store, hash-verified

104 * non-numeric / non-positive value falls back to the default (10s).
105 */
106export function resolveParseTimeoutMs(envVal: string | undefined): number {
107 if (envVal !== undefined && envVal !== '') {
108 const n = Number(envVal);
109 if (Number.isFinite(n) && n > 0) return Math.floor(n);
110 }
111 return DEFAULT_PARSE_TIMEOUT_MS;
112}
113
114/**
115 * Per-file soft timeout. Size scaling helps legitimate large sources, but an

Callers 2

index.tsFile · 0.90
parse-pool.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected