How to asynchronously wait for x seconds and execute something then?
(transcribed from Ben as comment) just use System.Windows.Forms.Timer. Set the timer for 5 seconds, and handle the Tick event. When the event fires, do the thing. …and disable the timer (IsEnabled=false) before doing your work in oder to suppress a second. The Tick event may be executed on another thread that cannot modify your gui, … Read more