Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TPromise_1
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TPromise () |
Default constructor (creates a new shared state). | Async/Future.h | |
TPromise
(
TUniqueFunction< void()>&& CompletionCallback |
Create and initialize a new instance with a callback. | Async/Future.h | |
| Movable-only. | Async/Future.h | ||
| Async/Future.h |
TPromise()
Description
Default constructor (creates a new shared state).
| Name | TPromise |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Async/Future.h |
| Include Path | #include "Async/Future.h" |
TPromise()
TPromise(TUniqueFunction< void()> &&)
Description
Create and initialize a new instance with a callback.
| Name | TPromise |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Async/Future.h |
| Include Path | #include "Async/Future.h" |
TPromise
(
TUniqueFunction < void> && CompletionCallback
)
Parameters
| Name | Remarks |
|---|---|
| CompletionCallback | A function that is called when the future state is completed. |
TPromise(TPromise &&)
Description
Movable-only.
| Name | TPromise |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Async/Future.h |
| Include Path | #include "Async/Future.h" |
TPromise
(
TPromise && Other
)
TPromise(const TPromise &)
| Name | TPromise |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Async/Future.h |
| Include Path | #include "Async/Future.h" |
TPromise
(
const TPromise & Other
)