Sleep -> Yield

This commit is contained in:
Rusty Burchfield 2023-03-12 18:29:15 -07:00 committed by GitHub
parent 39f5855b12
commit 84bb78558e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -509,7 +509,7 @@ public class CUE4ParseViewModel : ViewModel
{
foreach (var asset in assetItems)
{
Thread.Sleep(10);
Thread.Yield();
cancellationToken.ThrowIfCancellationRequested();
Extract(cancellationToken, asset.FullPath, TabControl.HasNoTabs);
}
@ -519,7 +519,7 @@ public class CUE4ParseViewModel : ViewModel
{
foreach (var asset in folder.AssetsList.Assets)
{
Thread.Sleep(10);
Thread.Yield();
cancellationToken.ThrowIfCancellationRequested();
try
{