FFutureState

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

Windows
MacOS
Linux

Inheritance Hierarchy

FFutureState

TFutureState

References

Module

Core

Header

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

Include

#include "Async/Future.h"

Syntax

class FFutureState

Remarks

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

Constructors

Name Description

Public function

FFutureState()

Default constructor.

Public function

FFutureState

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

Create and initialize a new instance with a callback.

Destructors

Name Description

Public function

~FFutureState()

Destructor.

Functions

Name Description

Public function Const

bool

 

IsComplete()

Checks whether the asynchronous result has been set.

Protected function

void

 

MarkComplete()

Notifies any waiting threads that the result is available.

Public function

void

 

SetContinuation

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

Set a continuation to be called on completion of the promise

Public function Const

bool

 

WaitFor

(
    const FTimespan& Duration
)

Blocks the calling thread until the future result is available.

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