Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Async > API/Runtime/Core/Async/Fundamental
Inheritance Hierarchy
- FTaskBase
- FTask
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Async/Fundamental/Task.h |
| Include | #include "Async/Fundamental/Task.h" |
Syntax
class FTask : private LowLevelTasks::Tasks_Impl::FTaskBase
Remarks
Minimal low level task interface
Constructors
| Type | Name | Description | |
|---|---|---|---|
FTask () |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FTask () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| bool | |||
| const FTask * | Get the currently active task if any | ||
| const TCHAR * | GetDebugName () |
||
| FInitData | GetInitData () |
||
| ETaskPriority | GetPriority () |
||
| void * | GetUserData () |
||
| void | Init
(
const TCHAR* InDebugName, |
||
| void | Init
(
const TCHAR* InDebugName, |
||
| bool | |||
| bool | IsCompleted
(
std::memory_order MemoryOrder |
Means the task is completed and this taskhandle can be recycled | |
| bool | IsReady () |
Means the task is ready to be launched but might already been canceled | |
| void | SetUserData
(
void* NewUserData |
||
| bool | TryCancel
(
ECancellationFlags CancellationFlags |
Try to cancel the task if it has not been launched yet. | |
| bool | TryExecute () |
Try to execute the task if it has not been launched yet the task will execute immediately. | |
| bool | TryExecute
(
FTask*& Continuation |
Try to execute the task if it has not been launched yet the task will execute immediately. | |
| bool | TryExpedite () |
Try to expedite the task if succeded it will run immediately but it will not set the completed state until the scheduler has executed it, because the scheduler still holds a reference. | |
| bool | TryExpedite
(
FTask*& Continuation |
Try to expedite the task if succeded it will run immediately but it will not set the completed state until the scheduler has executed it, because the scheduler still holds a reference. | |
| bool | TryRevive () |
Try to revive a canceled task (as in reverting the cancellation as if it never happened). | |
| bool | WasCanceled () |
Means the task was canceled but might still need to be launched | |
| bool | WasExpedited () |
Means the task was expedited or that it already completed |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FInitData |
Constants
| Name | Description |
|---|---|
| ActiveTask |