Hi I am trying to find a method of waiting a number of milliseconds before moving to the next line of code,
I have looked into Thread.Sleep but this will freeze the
The await keyword, in conjunction with Task.Delay makes this trivial.
await
Task.Delay
public async Task Foo() { await Task.Delay(2000); txtConsole.AppendText("Waiting..."); DoStuff(); }