private async Task DoWorkAsyncInfiniteLoop()
{
while (true)
{
// do the work in the loop
string newData = DateTime.Now.ToLongTimeString();
// update the UI
txtTicks.Text = "ASYNC LOOP - " + newData;
// don't run again for at least 200 milliseconds
await Task.Delay(200);
}
}