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

Function resolveParseTimeoutMs

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

Source from the content-addressed store, hash-verified

102 * non-numeric / non-positive value falls back to the default (10s).
103 */
104export function resolveParseTimeoutMs(envVal: string | undefined): number {
105 if (envVal !== undefined && envVal !== '') {
106 const n = Number(envVal);
107 if (Number.isFinite(n) && n > 0) return Math.floor(n);
108 }
109 return DEFAULT_PARSE_TIMEOUT_MS;
110}
111
112export function resolveParsePoolSize(envVal: string | undefined, cpuCount: number): number {
113 if (envVal !== undefined && envVal !== '') {

Callers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected