Aria 2.0.0
C++23 MVVM framework (C++20 minimum) — reactive, coroutine-first, ABI-layered
Loading...
Searching...
No Matches
safe_run.hpp File Reference
#include "aria/async/executor.hpp"
#include "aria/async/task.hpp"
#include <exception>
#include <functional>
#include <optional>
#include <stdexcept>
#include <type_traits>
#include <utility>
Include dependency graph for safe_run.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  aria
namespace  aria::async

Functions

template<typename Fn>
auto aria::async::on_ui (IExecutor &ui_exec, Fn body) -> Task< detail::body_result_t< Fn > >
 Run body() (a coroutine factory).
template<typename Body, typename OnError>
Task< void > aria::async::on_ui_safe (IExecutor &ui_exec, Body body, OnError on_error)
 Like on_ui(), but routes any exception to on_error(e) on the UI thread.