Synced
EventDispatcher.Constructor
Section titled “EventDispatcher.Constructor”
- Creates a dispatcher with bounded pending work and a finite per-flush budget.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Events
Declaration
Section titled “Declaration”public Inno.Core.Events.EventDispatcher.EventDispatcher(int queueCapacity = 65536, int flushBudget = 4096)Parameters
Section titled “Parameters”Parameter queueCapacity: Maximum pending events; producers must handle explicit rejection.
Parameter flushBudget: Maximum events dispatched by one flush, excluding events enqueued during that flush.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentOutOfRangeException: A budget is not positive.