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 >)> AsyncPool
(
FQueuedThreadPool & ThreadPool,
CallableType && Callable,
TUniqueFunction < void> CompletionCallback,
EQueuedWorkPriority InQueuedWorkPriority
)
Remarks
Execute a given function asynchronously on the specified thread pool. A TFuture object that will receive the return value from the function.
Parameters
| Name | Description |
|---|---|
| CallableType | The type of callable object. |
| ThreadPool | The thread pool to execute on. |
| Function | The function to execute. |
| CompletionCallback | An optional callback function that is executed when the function completed execution. |