Synced
EventDispatcher.TryEnqueue
Section titled “EventDispatcher.TryEnqueue”
- Attempts to enqueue without silently dropping a critical event on overload.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Events
Declaration
Section titled “Declaration”public bool Inno.Core.Events.EventDispatcher.TryEnqueue(Inno.Core.Events.Event e)Parameters
Section titled “Parameters”Parameter e: The event whose ownership transfers only on success.
Returns
Section titled “Returns”False when capacity is exhausted; the caller retains the event.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: The event is null.