TAsyncQueuedWork

Template for asynchronous functions that are executed in the queued thread pool.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

IQueuedWork

TAsyncQueuedWork

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Async/Async.h

Include

#include "Async/Async.h"

Syntax

template<typename ResultType>
class TAsyncQueuedWork : public IQueuedWork

Remarks

Template for asynchronous functions that are executed in the queued thread pool.

Constructors

Name Description

Public function

TAsyncQueuedWork

(
    TUniqueFunction< ResultType()>&& I...,
    TPromise< ResultType >&& InPromise
)

Creates and initializes a new instance.

Overridden from IQueuedWork

Name Description

Public function Virtual

void

 

Abandon()

Tells the queued work that it is being abandoned so that it can do per object clean up as needed.

Public function Virtual

void

 

DoThreadedWork()

This is where the real thread work is done.