15 #include <type_traits>
20 template<
typename T>
class Promise;
70 : std::runtime_error(message) {}
181 template<
typename Func>
244 template<
typename Func>
247 std::chrono::milliseconds timeout)
Static utility class for executing CPU-intensive tasks asynchronously.
static auto executeAsync(std::shared_ptr< SLLooper > resultLooper, Func &&func) -> Promise< decltype(func())>
Execute CPU-bound task asynchronously without timeout.
static auto executeAsync(std::shared_ptr< SLLooper > resultLooper, Func &&func, std::chrono::milliseconds timeout) -> Promise< decltype(func())>
Execute CPU-bound task asynchronously with timeout protection.
Exception thrown when CPU-bound tasks exceed timeout limits.
CpuTaskTimeoutException(const std::string &message)
Constructor with timeout message.
Type-safe promise for asynchronous result handling with continuation chaining.
Software Timer namespace containing all timer-related classes.