UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AsyncLoadingFlushContext.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Containers/Ticker.h"
8#include "HAL/Platform.h"
9#include "Logging/LogMacros.h"
11
13
15
20{
21public:
22 COREUOBJECT_API FAsyncLoadingFlushContext(const FString & Context);
25
27
28 int32 GetId() const { return Id; }
29
30private:
32
33 void CleanupTickers();
34
35 bool OnAsyncLoadingCheck(float DeltaTime);
36 bool OnAsyncLoadingWarn(float DeltaTime);
37
39 static constexpr float LoadingFlushWarnIntervalSeconds = 10.f;
40
42 FString Context;
43
45 int32 Id;
46
48 FOnAsyncLoadingFlushComplete OnFlushCompleteDelegate;
49
51 double StartTime = 0;
52
54 FTSTicker::FDelegateHandle LoadingCompleteCheckDelegateHandle;
55 FTSTicker::FDelegateHandle WaitingWarnDelegateHandle;
56
58 static COREUOBJECT_API int32 NextId;
59};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DECLARE_DELEGATE(DelegateName)
Definition DelegateCombinations.h:20
#define DECLARE_LOG_CATEGORY_EXTERN(CategoryName, DefaultVerbosity, CompileTimeVerbosity)
Definition LogMacros.h:361
Definition AsyncLoadingFlushContext.h:20
COREUOBJECT_API ~FAsyncLoadingFlushContext()
Definition AsyncLoadingFlushContext.cpp:26
int32 GetId() const
Definition AsyncLoadingFlushContext.h:28
Definition UnrealTemplate.h:321