Navigation
API > API/Runtime > API/Runtime/AssetRegistry > API/Runtime/AssetRegistry/IAssetRegistry
Description
Call the given callback when all requested ActiveMountsLoading loads and unloads complete and the system becomes idle. The callback is called outside of the lock, so by the time it is called, a new request may have come in and the system might be in progress again. Intended use of this function is to guard entry into a state that relies on AssetRegistry queries after issuing a set of ActiveMounts loads or unloads. If the system is already idle (ActiveMountsIsInProgress returns false), the callback is called immediately. If ActiveMountsLoading is not enabled, the callback is called immediately. The callback might be called from an async thread; caller should handle thread safety in their callback.
| Name | ActiveMountsReportWhenIdle |
| Type | function |
| Header File | /Engine/Source/Runtime/AssetRegistry/Public/AssetRegistry/IAssetRegistry.h |
| Include Path | #include "AssetRegistry/IAssetRegistry.h" |
void ActiveMountsReportWhenIdle
(
TFunction< void()> OnIdle
)