IRequest

Interface to an asynchronous request that can be prioritized or canceled.

Windows
MacOS
Linux

Inheritance Hierarchy

IRequest

FRequestBase

References

Module

DerivedDataCache

Header

/Engine/Source/Developer/DerivedDataCache/Public/DerivedDataRequest.h

Include

#include "DerivedDataRequest.h"

Syntax

class IRequest

Remarks

Interface to an asynchronous request that can be prioritized or canceled.

Use IRequestOwner, typically FRequestOwner, to reference requests between its Begin and End.

Requests typically invoke a callback on completion, and must not return from Cancel or Wait on any thread until any associated callbacks have finished executing. This property is crucial to allowing requests to be chained or nested by creating new requests from within callbacks.

Destructors

Name Description

Public function Virtual

~IRequest()

Functions

Name Description

Public function Const

void

 

AddRef()

Add a reference to the request.

Public function

void

 

Cancel()

Cancel the request and invoke any associated callback.

Public function Const

void

 

Release()

Release a reference. The request is deleted when the last reference is released.

Public function

void

 

SetPriority

(
    EPriority Priority
)

Set the priority of the request.

Public function

void

 

Wait()

Block the calling thread until the request is complete.

See Also