The read-only side of an event channel. Events are delivered to listeners in a strict FIFO order, i.e. only after the event was processed a new event may appear for processing, same listener is never called concurrently.
More...
DoAddListener (FunctionId id, std::string_view name, Function &&func)=0
Detailed Description
template<typename... Args>
class concurrent::AsyncEventSource< Args >
The read-only side of an event channel. Events are delivered to listeners in a strict FIFO order, i.e. only after the event was processed a new event may appear for processing, same listener is never called concurrently.
the subscriber, which is the owner of the listener method, and is also used as the unique identifier of the subscription for this AsyncEventSource
name
the name of the subscriber, for diagnostic purposes
func
the listener method, usually called On<DataName>Update, e.g. OnConfigUpdate or OnCacheUpdate
Returns
a AsyncEventSubscriberScope controlling the subscription, which should be stored as a member in the subscriber; Unsubscribe should be called explicitly