I'd like to have a timer where I can wait on with the await keyword. I was just curious if it exists?
I suspect you just want Task.Delay
:
public async Task Foo()
{
// Do some work
await Task.Delay(5000);
// Do some more work 5 seconds later
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With