FOnlineAsyncTaskGenericCallable

An async task that can execute any callable type with no parameters.

Windows
MacOS
Linux

Inheritance Hierarchy

FOnlineAsyncItem

FOnlineAsyncTask

FOnlineAsyncTaskGenericCallable

References

Module

OnlineSubsystem

Header

/Engine/Plugins/Online/OnlineSubsystem/Source/Public/OnlineAsyncTaskManager.h

Include

#include "OnlineAsyncTaskManager.h"

Syntax

template<class CallableType>
class FOnlineAsyncTaskGenericCallable : public FOnlineAsyncTask

Remarks

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.

Constructors

Name Description

Public function

FOnlineAsyncTaskGenericCallable

(
    const CallableType& InCallable
)

Constructor.

Overridden from FOnlineAsyncTask

Name Description

Public function Virtual Const

bool

 

IsDone()

Check the state of the async task

Public function Virtual Const

bool

 

WasSuccessful()

Check the success of the async task

Overridden from FOnlineAsyncItem

Name Description

Public function 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

Public function Virtual Const

FString

 

ToString()

Get a human readable description of task

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss