68 template <
typename tValue>
161 void executeContination(tValue value);
173 void executeErrorHandler(std::exception_ptr exception);
175 std::optional<tValue> m_value;
176 std::exception_ptr m_exception;
177 std::function<void(tValue)> m_continuation;
178 std::function<void(std::exception_ptr)> m_errorHandler;
179 std::shared_ptr<SLLooper> m_looper;
180 std::shared_ptr<SLLooper> m_errorLooper;
242 void setValue(std::monostate &&value);
299 void executeContination(std::monostate value);
308 void executeErrorHandler(std::exception_ptr exception);
310 std::optional<std::monostate> m_value;
311 std::exception_ptr m_exception;
312 std::function<void()> m_continuation;
313 std::function<void(std::exception_ptr)> m_errorHandler;
314 std::shared_ptr<SLLooper> m_looper;
315 std::shared_ptr<SLLooper> m_errorLooper;
void setContinuation(std::shared_ptr< SLLooper > &looper_, F &&continuation)
Register continuation callback for void promise completion.
~State()
Destructor - cleanup void state.
State()
Default constructor - initializes empty void state.
void setErrorHandler(std::shared_ptr< SLLooper > &looper_, F &&errorHandler)
Register error handler for void promise rejection.
Thread-safe promise state management with continuation support.
State()
Default constructor - initializes empty state.
void setValue(tValue &&value)
Set the promise value and trigger continuation.
void setContinuation(std::shared_ptr< SLLooper > &looper_, F &&continuation)
Register continuation callback for successful resolution.
~State()
Destructor - cleanup state.
void setException(std::exception_ptr exception)
Set exception state and trigger error handler.
void setErrorHandler(std::shared_ptr< SLLooper > &looper_, F &&errorHandler)
Register error handler callback for promise rejection.
Software Timer namespace containing all timer-related classes.