|
Aria 2.0.0
C++23 MVVM framework (C++20 minimum) — reactive, coroutine-first, ABI-layered
|
#include "aria/async/executor.hpp"#include "aria/async/task.hpp"#include <exception>#include <functional>#include <optional>#include <stdexcept>#include <type_traits>#include <utility>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. | |