You can include the namespace System.Threading and use a Timer with a callback method when the timer expires. You can also make use of the WaitHandle object.
Marked as answer byAnonymousThursday, October 7, 2021 12:00 AM
You can include the namespace System.Threading and use a Timer with a callback method when the timer expires. You can also make use of the WaitHandle object.
Marked as answer byAnonymousThursday, October 7, 2021 12:00 AM
User-1134538790 posted
Thanks for the response :) I was wondering if there was some built-in way to be honest. I'm not looking to execute any code while waiting so Thread.Sleep() would also do the trick I guess. Cheers!