Navigation
API > API/Runtime > API/Runtime/CoreUObject
Denote that this scope runs in speculation mode. Speculation mode allows us to return stale objects, or null when in a transaction & dereferencing a remote object. Execution will continue (rather than aborting), but cannot commit in this mode (an attempt to commit will instead abort). This allows us to continue to speculate about what a transaction might do, request those results, and abort only once.
Note: Due to the possibility of returning null, a scope must protect against null even if the object actually exists on another server.
| Name | FSpeculationExecutionScope |
| Type | struct |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/RemoteExecutor.h |
| Include Path | #include "UObject/RemoteExecutor.h" |
Syntax
struct FSpeculationExecutionScope
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSpeculationExecutionScope() |
UObject/RemoteExecutor.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FSpeculationExecutionScope() |
UObject/RemoteExecutor.h |