Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Creates a dispatcher with bounded pending work and a finite per-flush budget.

API: scripting
Project: Inno.Core.Events
Scope: Runtime

public InnoEngine.Events.EventDispatcher.EventDispatcher(int queueCapacity = 65536, int flushBudget = 4096)

Parameter queueCapacity: Maximum pending events; producers must handle explicit rejection.

Parameter flushBudget: Maximum events dispatched by one flush, excluding events enqueued during that flush.

Exception T:System.ArgumentOutOfRangeException: A budget is not positive.