Navigation
API > API/Runtime > API/Runtime/AutoRTFM
TTask is a small std::function like class that can wrap a functor (lambda, etc). TTask is used by AutoRTFM for callbacks such as OnCommit and OnAbort handlers, which there may be many accumulating throughout a transaction. For this reason TTask is designed to be compact in size (smaller than TFunction), but large enough to fit the most common functors used by AutoRTFM tasks. Note: to prevent generating closed-variants of task-wrapped functions, operator() cannot be called from the closed. All other operations on the task can be called from the open or closed.
| Name | TTask |
| Type | class |
| Header File | /Engine/Source/Runtime/AutoRTFM/Public/AutoRTFMTask.h |
| Include Path | #include "AutoRTFMTask.h" |
Syntax
template<typename Signature>
class TTask
Inheritance Hierarchy
- FTaskHandle → TTask
- TTask