Skip to content

@web-engine-dev/scheduler


@web-engine-dev/scheduler / SchedulerConfig

Interface: SchedulerConfig

Configuration for the scheduler.

Controls parallel execution behavior and default system placement.

Example

typescript
// Basic configuration
const config: SchedulerConfig = {
  enableParallelExecution: true,
  maxParallelWorkers: 4,
  defaultStage: CoreStages.UPDATE,
};

const scheduler = createScheduler<GameContext>(config);

Properties

defaultStage?

optional defaultStage: string

Default stage for systems without explicit stage


enableParallelExecution?

optional enableParallelExecution: boolean

Enable parallel execution (async concurrency on the main thread)


maxParallelWorkers?

optional maxParallelWorkers: number

Maximum number of concurrent async systems (0 or undefined = unlimited)

Proprietary software. All rights reserved.