#include <util.h>
Public Member Functions | |
| Task (std::future< Result > &&task) | |
| Task (Task &&other)=default | |
| ~Task () | |
| bool | test () |
| Returns true if the task has completed. More... | |
| Result | wait () |
| wait for the task to complete and return its result More... | |
Static Public Member Functions | |
| template<class Func , typename... Args> | |
| static Task | create (Func &&f, Args &&...args) |
Protected Attributes | |
| std::future< Result > | m_task |
|
inline |
|
default |
|
inline |
|
inlinestatic |
|
inline |
Returns true if the task has completed.
|
inline |
wait for the task to complete and return its result
|
protected |