engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | 所有成员列表
FFutureState类 参考

Base class for the internal state of asynchronous return values (futures). 更多...

#include <Future.h>

+ 类 FFutureState 继承关系图:

Public 成员函数

 FFutureState ()
 Default constructor.
 
 FFutureState (TUniqueFunction< void()> &&InCompletionCallback)
 Create and initialize a new instance with a callback. 更多...
 
bool IsComplete () const
 Checks whether the asynchronous result has been set. 更多...
 
void SetContinuation (TUniqueFunction< void()> &&Continuation)
 Set a continuation to be called on completion of the promise 更多...
 
bool WaitFor (const FTimespan &Duration) const
 Blocks the calling thread until the future result is available. 更多...
 
 ~FFutureState ()
 Destructor.
 

Protected 成员函数

void MarkComplete ()
 Notifies any waiting threads that the result is available.
 

详细描述

Base class for the internal state of asynchronous return values (futures).

构造及析构函数说明

◆ FFutureState()

FFutureState::FFutureState ( TUniqueFunction< void()> &&  InCompletionCallback)
inline

Create and initialize a new instance with a callback.

参数
InCompletionCallbackA function that is called when the state is completed.

成员函数说明

◆ IsComplete()

bool FFutureState::IsComplete ( ) const
inline

Checks whether the asynchronous result has been set.

返回
true if the result has been set, false otherwise.
参见
WaitFor

◆ SetContinuation()

void FFutureState::SetContinuation ( TUniqueFunction< void()> &&  Continuation)
inline

Set a continuation to be called on completion of the promise

参数
Continuation

◆ WaitFor()

bool FFutureState::WaitFor ( const FTimespan &  Duration) const
inline

Blocks the calling thread until the future result is available.

参数
DurationThe maximum time span to wait for the future result.
返回
true if the result is available, false otherwise.
参见
IsComplete

该类的文档由以下文件生成: