INNER CODE UNIT · TypeScript

resetPerformanceConfig

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

export function resetPerformanceConfig(): void {
	_config = null
}

/**
 * Set a custom configuration instance (useful for testing).
 * Rejects SCHEDULER_BATCH_SIZE values outside the valid range (a safe
 * positive integer at most MAX_SCHEDULER_BATCH_SIZE); other fields are
 * stored as-is so runtime guardrails (e.g. SCHEDULER_CONCURRENCY >= 1) can
 * raise their own errors.
 */
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(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…