![]() |
RoveComm C++ 3.0.0
Welcome to the RoveComm C++ repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of RoveComm C++. The RoveComm C++ project is the RoveComm interface for high level systems and should not be used for microcontrollers.
|
A class that takes a function with a return value (but no arguments), and constructs a task with no return value along with a future used to retrieve the function's return value once the task is executed. Used by submit_task() and submit_bulk(). More...
#include <BS_thread_pool.hpp>

Public Member Functions | |
| template<typename F, typename = std::enable_if_t<!std::is_same_v<std::decay_t<F>, task_and_future<R>>>> | |
| task_and_future (F &&func) | |
Public Attributes | |
| std::future< R > | future |
| task_t | task |
A class that takes a function with a return value (but no arguments), and constructs a task with no return value along with a future used to retrieve the function's return value once the task is executed. Used by submit_task() and submit_bulk().
| R | The return type of the function (can be void). |
|
inlineexplicit |
| std::future<R> BS::task_and_future< R >::future |
| task_t BS::task_and_future< R >::task |