![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Async.h>
Inheritance diagram for TAsyncGraphTask< ResultType >:Public Member Functions | |
| TAsyncGraphTask (TUniqueFunction< ResultType()> &&InFunction, TPromise< ResultType > &&InPromise, ENamedThreads::Type InDesiredThread=ENamedThreads::AnyThread) | |
| void | DoTask (ENamedThreads::Type CurrentThread, const FGraphEventRef &MyCompletionGraphEvent) |
| ENamedThreads::Type | GetDesiredThread () |
| TFuture< ResultType > | GetFuture () |
Public Member Functions inherited from FAsyncGraphTaskBase | |
| TStatId | GetStatId () const |
Additional Inherited Members | |
Static Public Member Functions inherited from FAsyncGraphTaskBase | |
| static ESubsequentsMode::Type | GetSubsequentsMode () |
Template for asynchronous functions that are executed in the Task Graph system.
|
inline |
Creates and initializes a new instance.
| InFunction | The function to execute asynchronously. |
| InPromise | The promise object used to return the function's result. |
|
inline |
Performs the actual task.
| CurrentThread | The thread that this task is executing on. |
| MyCompletionGraphEvent | The completion event. |
|
inline |
Returns the name of the thread that this task should run on.
|
inline |
Gets the future that will hold the asynchronous result.