engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
TPromise< void >类 参考

Template for promises (specialization for void results). 更多...

#include <Future.h>

继承自 TPromiseBase< InternalResultType > .

Public 成员函数

void EmplaceValue ()
 Sets the promised result. 更多...
 
TFuture< void > GetFuture ()
 Gets a TFuture object associated with the shared state of this promise. 更多...
 
TPromise & operator= (TPromise &&Other)
 Move assignment operator. 更多...
 
FORCEINLINE void SetValue ()
 Sets the promised result. 更多...
 
 TPromise ()
 Default constructor (creates a new shared state).
 
 TPromise (TPromise &&Other)
 Move constructor. 更多...
 
 TPromise (TUniqueFunction< void()> &&CompletionCallback)
 Create and initialize a new instance with a callback. 更多...
 

详细描述

Template for promises (specialization for void results).

构造及析构函数说明

◆ TPromise() [1/2]

TPromise< void >::TPromise ( TPromise< void > &&  Other)
inline

Move constructor.

参数
OtherThe promise holding the shared state to move.

◆ TPromise() [2/2]

TPromise< void >::TPromise ( TUniqueFunction< void()> &&  CompletionCallback)
inline

Create and initialize a new instance with a callback.

参数
CompletionCallbackA function that is called when the future state is completed.

成员函数说明

◆ EmplaceValue()

void TPromise< void >::EmplaceValue ( )
inline

Sets the promised result.

The result must be set only once. An assertion will be triggered if this method is called a second time.

参数
ResultThe result value to set.

◆ GetFuture()

TFuture< void > TPromise< void >::GetFuture ( )
inline

Gets a TFuture object associated with the shared state of this promise.

返回
The TFuture object.

◆ operator=()

TPromise & TPromise< void >::operator= ( TPromise< void > &&  Other)
inline

Move assignment operator.

参数
OtherThe promise holding the shared state to move.

◆ SetValue()

FORCEINLINE void TPromise< void >::SetValue ( )
inline

Sets the promised result.

The result must be set only once. An assertion will be triggered if this method is called a second time.


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