![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Future.h>
Inheritance diagram for TFuture< ResultType >:Public Member Functions | |
| TFuture ()=default | |
| TFuture (TFuture &&)=default | |
| TFuture (const TFuture &)=delete | |
| TFuture & | operator= (TFuture &&)=default |
| TFuture & | operator= (const TFuture &)=delete |
| ~TFuture ()=default | |
| MutableResultType | GetMutable () |
| MutableResultType | GetMutable () UE_LIFETIMEBOUND |
| ResultType | Consume () |
| TSharedFuture< ResultType > | Share () |
| template<typename Func > | |
| auto | Then (Func Continuation) |
| template<typename Func > | |
| auto | Next (Func Continuation) |
| void | Reset () |
Public Member Functions inherited from TFutureBase< ResultType > | |
| ConstResultType | Get () const |
| ConstResultType | Get () const UE_LIFETIMEBOUND |
| bool | IsReady () const |
| bool | IsValid () const |
| void | Wait () const |
| bool | WaitFor (const FTimespan &Duration) const |
| bool | WaitUntil (const FDateTime &Time) const |
Friends | |
| template<typename > | |
| class | TPromise |
| template<typename > | |
| class | TFutureBase |
Additional Inherited Members | |
Public Types inherited from TFutureBase< ResultType > | |
| using | MutableResultType = typename StateType::MutableResultType |
| using | ConstResultType = typename StateType::ConstResultType |
| using | RvalueResultType = typename StateType::RvalueResultType |
Protected Types inherited from TFutureBase< ResultType > | |
| using | StateType = TFutureState< ResultType > |
Protected Member Functions inherited from TFutureBase< ResultType > | |
| TFutureBase ()=default | |
| TFutureBase (TSharedPtr< StateType > &&InState) | |
| TFutureBase (const TSharedPtr< StateType > &InState) | |
| const TSharedPtr< StateType > & | GetState () const |
| template<typename Func > | |
| auto | Then (Func Continuation) |
| template<typename Func > | |
| auto | Next (Func Continuation) |
| void | Reset () |
Template for unshared futures.
|
delete |
Consumes the future's result and invalidates the future.
Gets the future's result.
| auto TFutureBase< ResultType >::Next | ( | Func | Continuation | ) |
Expose Next functionality
|
delete |
|
default |
|
inline |
Expose Reset functionality
|
inline |
Moves this future's state into a shared future.
| auto TFutureBase< ResultType >::Then | ( | Func | Continuation | ) |
Expose Then functionality