TSharedFuture

[TSharedFuture](API\Runtime\Core\Async\TSharedFuture) Template for shared futures.

Windows
MacOS
Linux

Inheritance Hierarchy

TFutureBase

TSharedFuture

References

Module

Core

Header

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

Include

#include "Async/Future.h"

Syntax

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

Remarks

TSharedFuture Template for shared futures.

Specializations

Constructors

Name Description

Public function

TSharedFuture()

Default constructor.

Public function

TSharedFuture

(
    const typename BaseType::StateType ...
)

Creates and initializes a new instance.

Public function

TSharedFuture

(
    TFuture< ResultType >&& Future
)

Creates and initializes a new instances from a future object.

Public function

TSharedFuture

(
    const TSharedFuture&
)

Copy constructor.

Public function

TSharedFuture

(
    TSharedFuture&&
)

Move constructor.

Destructors

Name Description

Public function

~TSharedFuture()

Destructor.

Functions

Name Description

Public function Const

ResultType

 

Get()

Gets the future's result.

Operators

Name Description

Public function

TSharedFutur...

 

operator=

(
    const TSharedFuture& Other
)

Copy assignment operator.

Public function

TSharedFutur...

 

operator=

(
    TSharedFuture&& 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