TFuture

Template for unshared futures.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

TFutureBase

TFuture

References

Module

Core

Header

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

Include

#include "Async/Future.h"

Syntax

template<typename ResultType>
class TFuture : public TFutureBase< ResultType >

Remarks

Template for unshared futures.

Specializations

Constructors

Name Description

Public function

TFuture()

Default constructor.

Public function

TFuture

(
    const typename BaseType::StateType ...
)

Creates and initializes a new instance.

Public function

TFuture

(
    TFuture&&
)

Move constructor.

Destructors

Name Description

Public function

~TFuture()

Destructor.

Functions

Name Description

Public function Const

ResultType

 

Get()

Gets the future's result.

Public function

TSharedFutur...

 

Share()

Moves this future's state into a shared future.

Operators

Name Description

Public function

TFuture &

 

operator=

(
    TFuture&& Other
)

Move assignment operator.

Typedefs

Name

Description

BaseType