Navigation
Unreal Engine C++ API Reference > Developer > SourceControl > ISourceControlProvider > TryToDownloadFileFromBackgroundThread
References
Module | SourceControl |
Header | /Engine/Source/Developer/SourceControl/Public/ISourceControlProvider.h |
Include | #include "ISourceControlProvider.h" |
Source | /Engine/Source/Developer/SourceControl/Private/ISourceControlProvider.cpp |
virtual bool TryToDownloadFileFromBackgroundThread ( const [TSharedRef](API\Runtime\Core\Templates\TSharedRef)< class [FDownloadFile](API\Developer\SourceControl\FDownloadFile) > & InOperation, const [TArray](API\Runtime\Core\Containers\TArray)< [FString](API\Runtime\Core\Containers\FString) > & InFiles )
Remarks
Executes the FDownloadFile operation, but unlike the Execute method this can be called from a background thread, this works because FDownloadFile is thread safe and it does not change the state of source control. NOTE: This is only intended for use by the virtualization module and will be deprecated at some point in the future when thread safety is built into the system. NOTE: This is only implemented for the perforce source control provider with no plans to extend this to other providers. True if the operation was a success, otherwise false.
Parameters
Name | Description |
---|---|
InOperation | The download operation to be executed. |
InFile | An array of depot paths for the files to download. |