template<typename T>
{ t.start() } -> std::same_as<void>;
{ t.stop() } -> std::same_as<void>;
{ t.is_running() } -> std::convertible_to<bool>;
{ t.unsubscribe(id) } -> std::same_as<void>;
}
A type that satisfies the event bus interface requirements.
A type that satisfies the event bus interface requirements.
Types satisfying this concept can publish events and manage subscriptions.
Example usage:
template<EventBusLike B, EventType E>
void broadcast(B& bus, const E& event) {
bus.publish(event);
}
Definition at line 252 of file event.h.