UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IAsyncTask Class Referenceabstract

#include <IAsyncTask.h>

Public Member Functions

virtual void Cancel ()=0
 
virtual EAsyncTaskState GetTaskState ()=0
 
virtual ~IAsyncTask ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~IAsyncTask()

virtual IAsyncTask::~IAsyncTask ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

◆ Cancel()

virtual void IAsyncTask::Cancel ( )
pure virtual

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.

◆ GetTaskState()

virtual EAsyncTaskState IAsyncTask::GetTaskState ( )
pure virtual

Gets the current state of the task.

Returns
Task state.

The documentation for this class was generated from the following file: