Your background loop probably doesn't need Task.Delay. For periodic async work, PeriodicTimer makes the intent much clearer: wait for the next tick, do the work, repeat. One consumer at a time, dispose it, pass the token. https://learn.microsoft.com/dotnet/api/system.threading.periodictimer
5 likes 1 replies
?