12 #ifndef RTCTK_COMPONENTFRAMEWORK_MALEVENTINJECTOR_HPP
13 #define RTCTK_COMPONENTFRAMEWORK_MALEVENTINJECTOR_HPP
17 #include <mal/utility/future.hpp>
21 template <
typename EventType>
23 auto ev = std::make_shared<EventType>();
24 auto f = ev->GetPayload().GetReplyFuture();
29 template <
typename EventType,
typename PayloadType>
31 auto ev = std::make_shared<EventType>(payload);
32 auto f = ev->GetPayload().GetReplyFuture();