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

◆ domain_mismatch_error()

template<typename RoutineType >
void MayaFlux::Vruta::routine_promise< RoutineType >::domain_mismatch_error ( const std::string &  awaiter_name,
const std::string &  suggestion 
)
inline

Definition at line 211 of file Promise.hpp.

212 {
213 set_state("domain_error", awaiter_name + ": " + suggestion);
214 should_terminate = true;
215 }
void set_state(const std::string &key, T value)
Stores a value in the state dictionary.
Definition Promise.hpp:183
std::atomic< bool > should_terminate
Flag indicating whether the coroutine should be terminated.
Definition Promise.hpp:137