|
ThreadSchedule 3.0.0
Modern C++ thread management library
|
Error handling primitives: task_error, error_handler, and error_handled_task. More...
#include "../detail/callable/copyable_function.hpp"#include "../detail/callable/move_only_function.hpp"#include "../task_error.hpp"#include <exception>#include <functional>#include <future>#include <map>#include <memory>#include <mutex>#include <string>#include <type_traits>#include <vector>Go to the source code of this file.
Classes | |
| class | threadschedule::advanced::error_handler |
| Central registry and dispatcher for task-error callbacks. More... | |
| class | threadschedule::advanced::error_handled_task< Func > |
| Callable wrapper that catches exceptions and routes them to an error_handler. More... | |
| class | threadschedule::advanced::future_with_error_handler< T > |
| A move-only future wrapper that supports an error callback. More... | |
Namespaces | |
| namespace | threadschedule |
| namespace | threadschedule::advanced |
| namespace | threadschedule::advanced::error_handler_detail |
Typedefs | |
| using | threadschedule::advanced::error_handler_detail::error_callback_storage = ::threadschedule::detail::copyable_function< void(task_error const &)> |
| using | threadschedule::advanced::error_handler_detail::future_error_callback = ::threadschedule::detail::move_only_function< void(std::exception_ptr)> |
Functions | |
| template<typename Func > | |
| auto | threadschedule::advanced::make_error_handled_task (Func &&func, std::shared_ptr< error_handler > handler, std::string description="") |
| Factory function that creates an error_handled_task with perfect forwarding. | |
Error handling primitives: task_error, error_handler, and error_handled_task.
Definition in file error_handler.hpp.