Code optimization, function asynchrony

This commit is contained in:
2dust
2024-10-22 17:50:42 +08:00
parent 3bf2dc711d
commit b3c2084b76
10 changed files with 28 additions and 31 deletions

View File

@@ -17,7 +17,7 @@ namespace ServiceLib.Services.Statistics
_updateFunc = updateFunc;
_exitFlag = false;
Task.Run(() => Run());
Task.Run(Run);
}
private async void Init()