using System.ComponentModel;
using System.Threading.Tasks;
BackgroundWorker worker = new();
worker.RunWorkerAsync(WorkAsync());
System.Console.WriteLine(worker.IsBusy);
await Task.Delay(5000000);
PeriodicTimer _timer = new(TimeSpan.FromSeconds(5));
while (await _timer.WaitForNextTickAsync())
System.Console.WriteLine("Doing stuff");