INNER CODE UNIT · TypeScript

setPerformanceConfig

laxamentumtech/audnexus · src/config/performance.ts:196

export function setPerformanceConfig(config: PerformanceConfig): void {
	if (
		!Number.isSafeInteger(config.SCHEDULER_BATCH_SIZE) ||
		config.SCHEDULER_BATCH_SIZE <= 0 ||
		config.SCHEDULER_BATCH_SIZE > MAX_SCHEDULER_BATCH_SIZE
	) {
		throw new Error(
			`SCHEDULER_BATCH_SIZE must be an integer between 1 and ${MAX_SCHEDULER_BATCH_SIZE}`
		)
	}
	_config = config
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…