|
|
template<typename... Args> |
| | task_future (private_construct, Args &&... args) |
| |
|
| task_future (private_construct, T &&value) |
| |
|
template<typename F> |
| auto | then (F &&f) |
| |
|
T | get () |
| |
|
template<typename F, typename... Args> |
| void | do_work (F &&work, Args &&... args) |
| |
|
template<typename F> |
| auto | wrap (F &&work) |
| |
|
void | set_value (T &&value) |
| |
|
task_state | get_state () |
| |
|
std::exception_ptr | get_exception () |
| |
|
void | set_exception (std::exception_ptr exception) |
| |
|
void | wait () |
| |
|
template<class Rep, class Period> |
| bool | wait_for (const std::chrono::duration< Rep, Period > &timeout_duration) |
| |
|
template<class Clock, class Duration> |
| bool | wait_until (const std::chrono::time_point< Clock, Duration > &timeout_time) |
| |
|
|
static std::shared_ptr< task_future > | create_pending () |
| |
|
static std::shared_ptr< task_future > | create_ready (T &&value) |
| |
|
static std::shared_ptr< task_future > | create_failed (std::exception_ptr exception) |
| |
|
template<typename F> |
| static std::shared_ptr< task_future > | create (F &&work) |
| |
The documentation for this class was generated from the following file: