|
|
| task (const task &)=delete |
| |
|
task & | operator= (const task &)=delete |
| |
|
| task (task &&)=default |
| |
|
task & | operator= (task &&)=default |
| |
|
| task ()=default |
| | Default constructor.
|
| |
| template<typename Callback , typename... Args> |
| | task (Callback &&c, Args &&... args) |
| | Constructs a task with a callable and arguments.
|
| |
| void | run () override |
| | Executes the task computation.
|
| |
| async::future< TYPE > | getFuture () |
| | Gets the future associated with this task.
|
| |
|
virtual | ~taskBase ()=default |
| | Virtual destructor for proper polymorphism.
|
| |
template<typename TYPE>
class original::task< TYPE >
Concrete task implementation with result type.
- Template Parameters
-
| TYPE | The return type of the task computation |
Wraps a computation and provides future/promise integration