refactor : 重构异步操作模块

This commit is contained in:
何冠峰
2026-01-08 19:19:05 +08:00
parent f375d45bd6
commit a37663a8c2
10 changed files with 74 additions and 99 deletions

View File

@@ -47,7 +47,7 @@ namespace YooAsset
string bundleGUID = _allBundleGUIDs[i];
_fileSystem.DeleteCacheBundleFile(bundleGUID);
_allBundleGUIDs.RemoveAt(i);
if (OperationSystem.IsBusy)
if (IsBusy)
break;
}

View File

@@ -101,7 +101,7 @@ namespace YooAsset
string bundleGUID = _clearBundleGUIDs[i];
_fileSystem.DeleteCacheBundleFile(bundleGUID);
_clearBundleGUIDs.RemoveAt(i);
if (OperationSystem.IsBusy)
if (IsBusy)
break;
}

View File

@@ -99,7 +99,7 @@ namespace YooAsset
string bundleGUID = _clearBundleGUIDs[i];
_fileSystem.DeleteCacheBundleFile(bundleGUID);
_clearBundleGUIDs.RemoveAt(i);
if (OperationSystem.IsBusy)
if (IsBusy)
break;
}

View File

@@ -64,7 +64,7 @@ namespace YooAsset
string bundleGUID = _unusedBundleGUIDs[i];
_fileSystem.DeleteCacheBundleFile(bundleGUID);
_unusedBundleGUIDs.RemoveAt(i);
if (OperationSystem.IsBusy)
if (IsBusy)
break;
}

View File

@@ -102,7 +102,7 @@ namespace YooAsset
Result.Add(element);
}
if (OperationSystem.IsBusy)
if (IsBusy)
break;
}

View File

@@ -90,7 +90,7 @@ namespace YooAsset
for (int i = _waitingList.Count - 1; i >= 0; i--)
{
if (OperationSystem.IsBusy)
if (IsBusy)
break;
if (_verifyingList.Count >= _verifyMaxNum)