Navigation
Unreal Engine C++ API Reference > Runtime > Core > Tasks > FTaskBase
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Tasks/TaskPrivate.h |
Include | #include "Tasks/TaskPrivate.h" |
Source | /Engine/Source/Runtime/Core/Private/Tasks/TaskPrivate.cpp |
bool Wait
&40;
FTimeout Timeout
&41;
Remarks
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.
true if the task is completed