I'm trying to use the Thread.Sleep() function, but when I do it is not working correctly.
I want to do some actions, sleep for 2 seconds, then do some more actions. However, the actions that should occur before the sleep are happening after. I'm not sure how to do this better. Here's my code:
What are the actions that are being held up?
If you are sleeping on the same thread that the is used to do the action, then you are preventing the action from happening until you release the thread.
Bookmarks