Quantcast
Channel: Alternative to Thead.Sleep? in C# - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Alternative to Thead.Sleep? in C#

$
0
0

I have another thread polling user input. This thread is the main thread and can sleep minutes at a time. If the user hits wants to quit it may be 2+ minutes before the console window shuts down which may feel not responsive.

How can i make this thread wake up from Thread.Sleep? Do i need to use another function to sleep and pass in a bool ref for it to check when the thread wake up and end?


Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images