|
ORIGINAL
|
Concrete task implementation with future/promise support. More...
#include <tasks.h>


Public Member Functions | |
| task (const task &)=delete | |
| Disable copy constructor. | |
| task & | operator= (const task &)=delete |
| Disable copy assignment. | |
| task (task &&)=default | |
| Allow move constructor. | |
| task & | operator= (task &&)=default |
| Allow move assignment. | |
| template<typename Callback , typename... Args> | |
| task (Callback &&c, Args &&... args) | |
| Constructs a task from a callable and its arguments. | |
| void | run () override |
| Executes the task. | |
| async::future< TYPE > | getFuture () |
| Gets the future associated with this task. | |
Public Member Functions inherited from original::taskDelegator::taskBase | |
| virtual | ~taskBase ()=default |
| Virtual destructor for proper polymorphic behavior. | |
Concrete task implementation with future/promise support.
| TYPE | Return type of the task |
Wraps a callable and its arguments, and provides integration with futures.
|
explicit |
Constructs a task from a callable and its arguments.
| Callback | Callable type |
| Args | Argument types |
| c | Callable to execute |
| args | Arguments for the callable |
| original::async::future< TYPE > original::taskDelegator::task< TYPE >::getFuture | ( | ) |
Gets the future associated with this task.
|
overridevirtual |
Executes the task.
Implements original::taskDelegator::taskBase.