ThreadSchedule 1.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
threadschedule::FutureWithErrorHandler< void > Class Reference

Specialization for void futures. More...

#include <error_handler.hpp>

Inheritance diagram for threadschedule::FutureWithErrorHandler< void >:
[legend]
Collaboration diagram for threadschedule::FutureWithErrorHandler< void >:
[legend]

Public Member Functions

 FutureWithErrorHandler (std::future< void > future)
 FutureWithErrorHandler (FutureWithErrorHandler const &)=delete
auto operator= (FutureWithErrorHandler const &) -> FutureWithErrorHandler &=delete
 FutureWithErrorHandler (FutureWithErrorHandler &&)=default
auto operator= (FutureWithErrorHandler &&) -> FutureWithErrorHandler &=default
auto on_error (std::function< void(std::exception_ptr)> callback) -> FutureWithErrorHandler &
void get ()
void wait () const
template<typename Rep, typename Period>
auto wait_for (std::chrono::duration< Rep, Period > const &timeout_duration) const
template<typename Clock, typename Duration>
auto wait_until (std::chrono::time_point< Clock, Duration > const &timeout_time) const
auto valid () const -> bool

Detailed Description

Specialization for void futures.

Definition at line 286 of file error_handler.hpp.

Constructor & Destructor Documentation

◆ FutureWithErrorHandler()

threadschedule::FutureWithErrorHandler< void >::FutureWithErrorHandler ( std::future< void > future)
inlineexplicit

Definition at line 289 of file error_handler.hpp.

Member Function Documentation

◆ get()

void threadschedule::FutureWithErrorHandler< void >::get ( )
inline

Definition at line 305 of file error_handler.hpp.

◆ on_error()

auto threadschedule::FutureWithErrorHandler< void >::on_error ( std::function< void(std::exception_ptr)> callback) -> FutureWithErrorHandler&
inline

Definition at line 298 of file error_handler.hpp.

◆ valid()

auto threadschedule::FutureWithErrorHandler< void >::valid ( ) const -> bool
inlinenodiscard

Definition at line 338 of file error_handler.hpp.

◆ wait()

void threadschedule::FutureWithErrorHandler< void >::wait ( ) const
inline

Definition at line 321 of file error_handler.hpp.

◆ wait_for()

template<typename Rep, typename Period>
auto threadschedule::FutureWithErrorHandler< void >::wait_for ( std::chrono::duration< Rep, Period > const & timeout_duration) const
inline

Definition at line 327 of file error_handler.hpp.

◆ wait_until()

template<typename Clock, typename Duration>
auto threadschedule::FutureWithErrorHandler< void >::wait_until ( std::chrono::time_point< Clock, Duration > const & timeout_time) const
inline

Definition at line 333 of file error_handler.hpp.


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