Synchronous Events
Synchronous event handling in RCommon.
Overview
Oftentimes, applications require events to be handled in a specific order. Synchronous events are quite simply events which are processed in a synchronous and ordered manner. That is to say, first-in-first-out. This is in contrast to asynchronous events which can be processed efficiently but without respect for order.
Synchronous and Asynchronous events should not be confused with parallel task processing which governs thread management in .NET. e.g. await SomeOperationAsync();
Synchronous and Asynchronous events have more to do with the order in which the events are processed.
Implementation
It is very simply mark an event as synchronous and there is no specific implementation required. We simply require the ISyncEvent marker interface:
Last updated