#include <task.hpp>
◆ TaskHandle()
template<typename ResultType >
Construct a new TaskHandle object.
This constructor initializes a new TaskHandle object that refers to the given task. The TaskHandle can be used to access the result of the task and to specify dependencies on this task for other tasks
- Parameters
-
| task | The task that this handle refers to |
◆ get()
template<typename ResultType >
Retrieves the result of the task referred to by this handle.
This method blocks until the task has been completed and then returns the result. If the task's function threw an exception, this method will rethrow that exception when called
- Returns
- ResultType The result of the task, as produced by the task's function
◆ Exkit
template<typename ResultType >
The documentation for this class was generated from the following file: