73{
74 auto network = wrapper.entity();
75 const auto& spec = wrapper.spec();
77
78 auto activation = std::make_shared<Kriya::TemporalActivation>(
80
81 activation->activate_network(network, spec.seconds,
node_token);
82
83 static std::vector<std::shared_ptr<Kriya::TemporalActivation>> active_timers;
84 active_timers.push_back(activation);
85
86 if (active_timers.size() > 100) {
87 std::erase_if(active_timers, [](const std::shared_ptr<Kriya::TemporalActivation>& t) {
88 return !t->is_active();
89 });
90 }
91
92 return network;
93}
static const auto node_token
MAYAFLUX_API Nodes::ProcessingToken get_node_token(Domain domain)
Extracts node processing token from domain.
std::shared_ptr< Nodes::NodeGraphManager > get_node_graph_manager()
Gets the node graph manager from the default engine.
std::shared_ptr< Buffers::BufferManager > get_buffer_manager()
Gets the buffer manager from the default engine.
std::shared_ptr< Vruta::TaskScheduler > get_scheduler()
Gets the task scheduler from the default engine.
std::optional< Domain > domain