#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 | |
static Int | GetCurrentWorkerThreadIndex () |
static Int | GetCurrentThreadCount () |
static Bool | IsCurrentJobCancelled (const JobInterface *optionalJob=nullptr) |
static JobStatusInterface * | GetCurrentJob () |
Protected Member Functions | |
void | MoveValue (T &&value) |
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 |