Navigation
API > API/Runtime > API/Runtime/Core
Template for asynchronous functions that are executed in the queued thread pool.
| Name | TAsyncQueuedWork |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Async/Async.h |
| Include Path | #include "Async/Async.h" |
Syntax
template<typename ResultType>
class TAsyncQueuedWork : public IQueuedWork
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TAsyncQueuedWork
(
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 |
Functions
Public
Overridden from IQueuedWork
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Abandon () |
Tells the queued work that it is being abandoned so that it can do per object clean up as needed. | Async/Async.h | |
virtual void DoThreadedWork () |
This is where the real thread work is done. | Async/Async.h |