Navigation
API > API/Plugins > API/Plugins/ToolsetRegistry
Handles UToolCallAsyncResult::OnCompleted by completing the associated future.
NOTE: This is tested by ToolCallAsyncResultTest.cpp.
| Name | UToolCallAsyncResultFutureHandler |
| Type | class |
| Header File | /Engine/Plugins/Experimental/ToolsetRegistry/Source/ToolsetRegistry/Public/ToolsetRegistry/ToolCallAsyncResultFutureHandler.h |
| Include Path | #include "ToolsetRegistry/ToolCallAsyncResultFutureHandler.h" |
Syntax
UCLASS (MinimalAPI, NotBlueprintable, HideDropDown)
class UToolCallAsyncResultFutureHandler : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UToolCallAsyncResultFutureHandler
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~UToolCallAsyncResultFutureHandler() |
ToolsetRegistry/ToolCallAsyncResultFutureHandler.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| CanceledError | const FString | Error that indicates the future was canceled. | ToolsetRegistry/ToolCallAsyncResultFutureHandler.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bOnCompletedHandled | bool | ToolsetRegistry/ToolCallAsyncResultFutureHandler.h | ||
| bRetrievedFuture | bool | ToolsetRegistry/ToolCallAsyncResultFutureHandler.h | ||
| Result | TObjectPtr< UToolCallAsyncResult > | ToolsetRegistry/ToolCallAsyncResultFutureHandler.h | ||
| ResultPromise | TPromise< UE::ToolsetRegistry::FJsonValueOrError > | ToolsetRegistry/ToolCallAsyncResultFutureHandler.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Resolves with the JSON result of UToolCallAsyncResult object passed to Create(). | ToolsetRegistry/ToolCallAsyncResultFutureHandler.h | ||
void Unsubscribe () |
Unsubscribe from the result and cancel the pending future returned from GetValueAsJson(). | ToolsetRegistry/ToolCallAsyncResultFutureHandler.h |
Public Virtual
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TStrongObjectPtr< UToolCallAsyncResultFutureHandler > Create
(
TObjectPtr< UToolCallAsyncResult > Result |
Create a handler and bind the OnCompleted method to the specified result instance's OnCompleted delegate. | ToolsetRegistry/ToolCallAsyncResultFutureHandler.h |