Template Class EventChannel

Class Documentation

template<EventPayload Payload>
class EventChannel

Declaration: final

Owned exact name and payload type identify one typed channel within a bus.

Same name/type values are equivalent; other payload types and legacy named channels are separate. Type identity is in-process, not a serialized protocol. Callback arguments borrow an invocation-owned copy; retain a copy for later use.

Public Types

using Callback = std::function<void(const Payload&)>

Public Functions

inline explicit EventChannel(std::string name)
inline const std::string &name() const noexcept

Declaration: [[nodiscard]]