Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Async
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Async/Async.h |
| Include | #include "Async/Async.h" |
template<typename CallableType>
TFuture < decltype< CallableType >)> AsyncThread
(
CallableType && Callable,
uint32 StackSize,
EThreadPriority ThreadPri,
TUniqueFunction < void> CompletionCallback
)
Remarks
Execute a given function asynchronously using a separate thread. A TFuture object that will receive the return value from the function.
Parameters
| Name | Description |
|---|---|
| CallableType | The type of callable object. |
| Function | The function to execute. |
| StackSize | stack space to allocate for the new thread |
| ThreadPri | thread priority |
| CompletionCallback | An optional callback function that is executed when the function completed execution. |