CoopSync for TBB 0.1.0
Cooperative synchronization primitives for TBB resumable tasks
Loading...
Searching...
No Matches
coopsync_tbb::future_error Class Reference

Exception type thrown by future and promise operations. More...

#include <coopsync_tbb/future.hpp>

Public Member Functions

 future_error (std::future_errc errc)
 Constructs a future_error with the given error code.
const std::error_code & code () const noexcept
 Obtains the error code associated with this future_error.

Detailed Description

Exception type thrown by future and promise operations.

Constructor & Destructor Documentation

◆ future_error()

coopsync_tbb::future_error::future_error ( std::future_errc errc)
inlineexplicit

Constructs a future_error with the given error code.

Parameters
errcThe error code to associate with this future_error.

Member Function Documentation

◆ code()

const std::error_code & coopsync_tbb::future_error::code ( ) const
inlinenoexcept

Obtains the error code associated with this future_error.

Returns
The error code associated with this future_error.

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