#include <job.h>

A rudimentary promise.
Static Public Member Functions | |
| static ResultMemT< PromiseRef< T > > | Create () |
Static Public Member Functions inherited from JobInterfaceTemplate< Promise< T >, T > | |
| static ResultMemT< JobResultRef< T > > | Create (ARGS &&... args) |
Static Public Member Functions inherited from JobInterface | |
| template<JOBCANCELLATION B = JOBCANCELLATION::AUTOMATIC, typename FN , typename... ARGS> | |
| static ResultMemT< JobInterface * > | Create (FN &&src, ARGS &&... args) |
| static Int | GetCurrentWorkerThreadIndex () |
| static Int | GetCurrentThreadCount () |
| static Bool | IsCurrentJobCancelled (const JobInterface *optionalJob=nullptr) |
| static JobStatusInterface * | GetCurrentJob () |
Protected Member Functions | |
| template<typename... ARGS> | |
| void | MoveValue (ARGS &&... args) |
Protected Member Functions inherited from JobResultInterface< RESULTVALUETYPE > | |
| ResultOk< void > | SetResult (RESULTVALUETYPE &&value) |
| RESULTVALUETYPE & | GetResultValue () |
| template<typename FN , typename... ARGS> | |
| Result< void > | Invoke (FN &&obj, ARGS &&... args) |
Friends | |
| template<typename > | |
| class | PromiseRef |
Additional Inherited Members | |
Protected Types inherited from JobResultInterface< RESULTVALUETYPE > | |
| using | ValueType = RESULTVALUETYPE |
|
static |
Creates a promise and returns.
| Result<void> operator() | ( | ) |
|
protected |
Move assigns the promise value.
|
friend |