mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-03 20:28:11 +03:00
Optimizing Task Code, add unified processing of scheduled tasks
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user