Navigation
API > API/Runtime > API/Runtime/Core
Template for asynchronous functions that are executed in a separate thread.
| Name | TAsyncRunnable |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Async/Async.h |
| Include Path | #include "Async/Async.h" |
Syntax
template<typename ResultType>
class TAsyncRunnable : public FRunnable
Inheritance Hierarchy
- FRunnable → TAsyncRunnable
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TAsyncRunnable
(
TUniqueFunction< ResultType()>&& InFunction, |
Creates and initializes a new instance. | Async/Async.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Function | TUniqueFunction< ResultType()> | The function to execute on the Task Graph. | Async/Async.h | |
| Promise | TPromise< ResultType > | The promise to assign the result to. | Async/Async.h | |
| ThreadFuture | TFuture< FRunnableThread * > | The thread running this task. | Async/Async.h |
Functions
Public
Overridden from FRunnable
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual uint32 Run() |
Inline functions | Async/Async.h |