12 #include <type_traits>
22 template <
typename tValue>
class State;
66 template <
typename tValue>
151 template <
typename F>
188 template <
typename F>
208 std::shared_ptr<State<tValue>> m_state;
313 template <
typename F>
341 template <
typename F>
360 std::shared_ptr<State<std::monostate>> m_state;
auto catchError(std::shared_ptr< SLLooper > &looper_, F func) -> Promise< void >
Chain error handler for void promise rejection.
auto then(std::shared_ptr< SLLooper > &looper_, F func) -> Promise< std::invoke_result_t< F > >
Chain continuation callback for void promise completion.
void operator()()
Function call operator for convenient void promise resolution.
Type-safe promise for asynchronous result handling with continuation chaining.
void set_exception(std::exception_ptr exception)
Reject promise with an exception.
Promise()
Default constructor - creates promise with shared state.
auto catchError(std::shared_ptr< SLLooper > &looper_, F func) -> Promise< tValue >
Chain error handler for exception recovery.
auto then(std::shared_ptr< SLLooper > &looper_, F func) -> Promise< std::invoke_result_t< F, tValue > >
Chain continuation callback for promise resolution.
void operator()(tValue value)
Function call operator for convenient promise resolution.
void set_value(tValue value)
Resolve promise with a value.
Software Timer namespace containing all timer-related classes.