MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ state

template<typename RoutineType >
std::unordered_map<std::string, std::any> MayaFlux::Vruta::routine_promise< RoutineType >::state

Dictionary for storing arbitrary state data.

This map allows the coroutine to store and retrieve named values of any type. It serves multiple purposes:

  1. Persistent storage between suspensions
  2. Communication channel between the coroutine and external code
  3. Parameter storage for configurable behaviors

The use of std::any allows for type-safe heterogeneous storage without requiring the promise type to be templated.

Definition at line 112 of file Promise.hpp.