Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FTaskBase_1
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Wait () |
Waits for task's completion. | Tasks/TaskPrivate.h | |
| Waits for task's completion, with optional timeout. | Tasks/TaskPrivate.h |
Wait()
Description
Waits for task's completion. Tries to retract the task and execute it in-place, if failed - blocks until the task is completed by another thread.
| Name | Wait |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Tasks/TaskPrivate.h |
| Include Path | #include "Tasks/TaskPrivate.h" |
| Source | /Engine/Source/Runtime/Core/Private/Tasks/TaskPrivate.cpp |
void Wait()
Wait(FTimeout)
Description
Waits for task's completion, with optional timeout. Tries to retract the task and execute it in-place, if failed - blocks until the task is completed by another thread. If timeout is zero, tries to retract the task and returns immedially after that. Wait(FTimespan::Zero())_ still tries to retract and execute the task, use IsCompleted()_ to check for completeness. The version w/o timeout is slightly more efficient.
| Name | Wait |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Tasks/TaskPrivate.h |
| Include Path | #include "Tasks/TaskPrivate.h" |
| Source | /Engine/Source/Runtime/Core/Private/Tasks/TaskPrivate.cpp |
bool Wait
(
FTimeout Timeout
)
true if the task is completed