More PeriodicTimer's instead of System.Threading.Timers

This commit is contained in:
Kwoth
2022-02-02 06:28:33 +01:00
parent b4a493971a
commit 41653a317b
10 changed files with 124 additions and 110 deletions

View File

@@ -52,7 +52,7 @@ public class PatreonRewardsService : INService, IReadyExecutor
if (_client.ShardId != 0)
return;
var t = new PeriodicTimer(Interval);
using var t = new PeriodicTimer(Interval);
do
{
try

View File

@@ -30,7 +30,7 @@ public class ConverterService : INService, IReadyExecutor
if (_client.ShardId != 0)
return;
var timer = new PeriodicTimer(_updateInterval);
using var timer = new PeriodicTimer(_updateInterval);
do
{
try