Optimization and Improvement.

Changed callback from synchronous Action<bool, string> to asynchronous Func<bool, string, Task>
This commit is contained in:
2dust
2025-08-29 10:53:57 +08:00
parent f39d966a33
commit 8ef68127d4
4 changed files with 65 additions and 55 deletions
+2 -2
View File
@@ -92,9 +92,9 @@ public class TaskManager
Logging.SaveLog("Execute update geo files");
var updateHandle = new UpdateService();
await updateHandle.UpdateGeoFileAll(_config, (success, msg) =>
await updateHandle.UpdateGeoFileAll(_config, async (success, msg) =>
{
_updateFunc?.Invoke(false, msg);
await _updateFunc?.Invoke(false, msg);
});
}
}