FOnlineAsyncTaskThreadedGenericCallable

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

Windows
MacOS
Linux

Inheritance Hierarchy

FOnlineAsyncItem

FOnlineAsyncTask

FOnlineAsyncTaskThreadedGenericCallable

References

Module

OnlineSubsystem

Header

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

Include

#include "OnlineAsyncTaskManager.h"

Syntax

template<class CallableType>
class FOnlineAsyncTaskThreadedGenericCallable : 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 ONLINE thread.

Constructors

Name Description

Public function

FOnlineAsyncTaskThreadedGenericCallable

(
    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

void

 

Tick()

Give the async task time to do its work Can only be called on the async task manager thread

Public function Virtual Const

bool

 

WasSuccessful()

Check the success of the async task

Overridden from FOnlineAsyncItem

Name Description

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