INNER CODE UNIT · TypeScript
buildRunner
brpapa/recursion-tree-visualizer · lambda/src/runner/index.ts:16
export default function buildRunner(
lang: SupportedLanguages,
options?: {
memoize?: boolean
timeoutMs?: number
maxRecursiveCalls?: number
tmpDirPath?: string
tmpFileMaxSizeBytes?: number
}
) {
const memoize = options?.memoize || false
const timeoutMs = options?.timeoutMs || DEFAULT_TIMEOUT_MS
const maxRecursiveCalls =
options?.maxRecursiveCalls || DEFAULT_MAX_RECURSIVE_CALLS
const tmpDirPath = options?.tmpDirPath || DEFAULT_TMP_DIR_PATH
const tmpFileMaxSizeBytes =
options?.tmpFileMaxSizeBytes || DEFAULT_TMP_FILE_MAX_SIZE_BYTES