TDeleterTask

[TDeleterTask](API\Plugins\ModelingOperators\TDeleterTask) is a task that takes ownership of another [FAsyncTask](API\Runtime\Core\Async\FAsyncTask) that is (presumably) still executing some operation.

Windows
MacOS
Linux

Inheritance Hierarchy

FNonAbandonableTask

TDeleterTask

References

Module

ModelingOperators

Header

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingOperators/Public/ModelingTaskTypes.h

Include

#include "ModelingTaskTypes.h"

Syntax

template<typename DeleteTaskType>
class TDeleterTask : public FNonAbandonableTask

Remarks

TDeleterTask is a task that takes ownership of another FAsyncTask that is (presumably) still executing some operation. The DeleterTask waits for this FAsyncTask to complete, and then deletes it.

TDeleterTask should be launched as a background task via FAutoDeleteAsyncTask, see FAsyncTaskExecuterWithAbort::CancelAndDelete for an example.

Variables

Name Description

Public variable

FAsyncTask< Del...

 

Task

The task we will delete, when it completes

Constructors

Name Description

Public function

TDeleterTask

(
    FAsyncTask< DeleteTaskType >* ...
)

Functions

Name Description

Public function

void

 

DoWork()

Public function Const

TStatId

 

GetStatId()

Required for task system

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss