ThreadSchedule 1.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
threadschedule::ErrorHandledTask< Func > Class Template Reference

Task wrapper that provides error handling. More...

#include <error_handler.hpp>

Public Member Functions

 ErrorHandledTask (Func &&func, std::shared_ptr< ErrorHandler > handler, std::string description="")
void operator() ()

Detailed Description

template<typename Func>
class threadschedule::ErrorHandledTask< Func >

Task wrapper that provides error handling.

Wraps a task function and handles exceptions according to the provided error handler.

Definition at line 148 of file error_handler.hpp.

Constructor & Destructor Documentation

◆ ErrorHandledTask()

template<typename Func>
threadschedule::ErrorHandledTask< Func >::ErrorHandledTask ( Func && func,
std::shared_ptr< ErrorHandler > handler,
std::string description = "" )
inline

Definition at line 151 of file error_handler.hpp.

Member Function Documentation

◆ operator()()

template<typename Func>
void threadschedule::ErrorHandledTask< Func >::operator() ( )
inline

Definition at line 156 of file error_handler.hpp.


The documentation for this class was generated from the following file: