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 ONLINE thread.
| Name | FOnlineAsyncTaskThreadedGenericCallable |
| Type | class |
| Header File | /Engine/Plugins/Online/OnlineSubsystem/Source/Public/OnlineAsyncTaskManager.h |
| Include Path | #include "OnlineAsyncTaskManager.h" |
Syntax
template<class CallableType>
class FOnlineAsyncTaskThreadedGenericCallable : public FOnlineAsyncTask
Inheritance Hierarchy
- FOnlineAsyncItem → FOnlineAsyncTask → FOnlineAsyncTaskThreadedGenericCallable
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FOnlineAsyncTaskThreadedGenericCallable
(
const FString& InCallableName, |
Constructor. | OnlineAsyncTaskManager.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bHasTicked | bool | True after it has ticked once and run the Callable on the online thread | OnlineAsyncTaskManager.h | |
| CallableName | FString | Name of the task to help logging | OnlineAsyncTaskManager.h | |
| 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 void Tick() |
Give the async task time to do its work Can only be called on the async task manager thread | OnlineAsyncTaskManager.h | |
virtual bool WasSuccessful() |
Check the success of the async task | OnlineAsyncTaskManager.h |
Overridden from FOnlineAsyncItem
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FString ToString() |
Get a human readable description of task | OnlineAsyncTaskManager.h |