Navigation
API > API/Plugins > API/Plugins/OnlineSubsystem
An async task that can execute any callable type with no parameters. For example, l lambda, or an object with an operator(). Useful for calling simple functions that need to run on the game thread, but are invoked from an online service thread.
| Name | FOnlineAsyncTaskGenericCallable |
| Type | class |
| Header File | /Engine/Plugins/Online/OnlineSubsystem/Source/Public/OnlineAsyncTaskManager.h |
| Include Path | #include "OnlineAsyncTaskManager.h" |
Syntax
template<class CallableType>
class FOnlineAsyncTaskGenericCallable : public FOnlineAsyncTask
Inheritance Hierarchy
- FOnlineAsyncItem → FOnlineAsyncTask → FOnlineAsyncTaskGenericCallable
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FOnlineAsyncTaskGenericCallable
(
const CallableType& InCallable |
Constructor. | OnlineAsyncTaskManager.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CallableObject | CallableType | Stored copy of the object to invoke on the game thread. | OnlineAsyncTaskManager.h |
Functions
Public
Overridden from FOnlineAsyncTask
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool IsDone() |
Check the state of the async task | OnlineAsyncTaskManager.h | |
virtual bool WasSuccessful() |
Check the success of the async task | OnlineAsyncTaskManager.h |
Overridden from FOnlineAsyncItem
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Finalize() |
Give the async task a chance to marshal its data back to the game thread Can only be called on the game thread by the async task manager | OnlineAsyncTaskManager.h | |
virtual FString ToString() |
Get a human readable description of task | OnlineAsyncTaskManager.h |