Optimizing Task Code, add unified processing of scheduled tasks

This commit is contained in:
2dust
2025-03-03 12:20:58 +08:00
parent 438eaba4d5
commit 67fe6ac3d8
4 changed files with 72 additions and 68 deletions
@@ -20,14 +20,6 @@ namespace ServiceLib.Handler
public async Task Init()
{
await InitData();
_ = Task.Run(async () =>
{
while (true)
{
await Task.Delay(1000 * 600);
await SaveQueueIndexIds();
}
});
}
public async Task<ConcurrentBag<ProfileExItem>> GetProfileExs()