3 #include <launchdarkly/events/event_processor_interface.hpp>
5 #include "event_factory.hpp"
7 namespace launchdarkly::server_side {
24 : processor_(processor), factory_(std::move(factory)) {}
36 template <
typename Callable>
37 void Send(Callable&& callable)
const {
39 processor_->SendAsync(callable(factory_));
44 events::IEventProcessor* processor_;
Definition: event_factory.hpp:13
Definition: event_scope.hpp:14
void Send(Callable &&callable) const
Definition: event_scope.hpp:37
EventScope(events::IEventProcessor *processor, EventFactory factory)
Definition: event_scope.hpp:23
EventScope()
Definition: event_scope.hpp:29