8 m_value = std::move(value);
9 if (m_continuation && m_looper) {
10 executeContination(std::move(*m_value));
17 m_exception = exception;
18 if (m_errorHandler && m_errorLooper) {
19 executeErrorHandler(m_exception);
21 std::cout <<
"m_errorHandler or m_errorLooper is empty\n";
26 if (m_looper && m_continuation) {
27 m_looper->post([continuation = m_continuation]()
mutable {
33void State<std::monostate>::executeErrorHandler(std::exception_ptr exception) {
34 if (m_errorLooper && m_errorHandler) {
35 m_errorLooper->post([errorHandler = m_errorHandler, exception]()
mutable {
36 errorHandler(exception);
Main event loop coordinator for asynchronous task management and timer operations.
Promise/Future state management with template specialization for void types.
Thread-safe promise state management with continuation support.
void setValue(tValue &&value)
Set the promise value and trigger continuation.
void setException(std::exception_ptr exception)
Set exception state and trigger error handler.
Software Timer namespace containing all timer-related classes.