Skip to content

task_result

Alairion edited this page May 8, 2021 · 3 revisions

nes::task_result

Defined in header <nes/thread_pool.hpp>

template<typename T>
class task_result;

Description

nes::task_result is an unique non-owning reference over a future stored in a nes::task_list.

nes::task_checkpoint is an alias of nes::task_result<void>.

Public Member functions

Function Description
task_result Creates a new task result
~task_result Destroys the task result
operator= Assigns a task result
get Waits and returns the result (cppreference.com)
valid Checks if the future has a shared state (cppreference.com)
wait Waits for the result to become available (cppreference.com)
wait_for Waits for the result, returns if it is not available for the specified timeout duration (cppreference.com)
wait_until Waits for the result, returns if it is not available until specified time point has been reached (cppreference.com)
Clone this wiki locally