Run async method regularly with specified interval
The async equivalent is a while loop with Task.Delay (which internally uses a System.Threading.Timer): public async Task PeriodicFooAsync(TimeSpan interval, CancellationToken cancellationToken) { while (true) { await FooAsync(); await Task.Delay(interval, cancellationToken) } } It’s important to pass a CancellationToken so you can stop that operation when you want (e.g. when you shut down your application). Now, … Read more