![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IAsyncTask.h>
Public Member Functions | |
| virtual void | Cancel ()=0 |
| virtual EAsyncTaskState | GetTaskState ()=0 |
| virtual | ~IAsyncTask () |
Interface for asynchronous tasks.
A asynchronous task is a unit of work that runs in parallel to the caller and may take a considerable amount of time to complete, i.e. several seconds, minutes or even hours. This interface provides mechanisms for tracking and canceling such tasks.
|
inlinevirtual |
Virtual destructor.
Cancel this task.
If the task is already running, it should make a best effort to abort execution as soon as possible. This method should be implemented in such a way that it returns immediately and does not block the caller.
|
pure virtual |
Gets the current state of the task.