TPromise< void >

Template for promises (specialization for void results).

Windows
MacOS
Linux

Inheritance Hierarchy

FNoncopyable

TPromiseBase

TPromise< void >

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Async/Future.h

Include

#include "Async/Future.h"

Syntax

template<>
class TPromise< void > : public TPromiseBase< int >

Remarks

Template for promises (specialization for void results).

Functions

Name Description

Public function

void

 

EmplaceValue()

Sets the promised result.

Public function

TFuture< voi...

 

GetFuture()

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

Public function

void

 

SetValue()

Sets the promised result.

Public function

 

TPromise()

Default constructor (creates a new shared state).

Public function

 

TPromise

(
    TPromise&& Other
)

Move constructor.

Public function

 

TPromise

(
    TUniqueFunction< void()>&& Complet...
)

Create and initialize a new instance with a callback.

Operators

Name Description

Public function

TPromise &

 

operator=

(
    TPromise&& Other
)

Move assignment operator.

Typedefs

Name

Description

BaseType

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss