I wish my method to wait about 500 ms and then check if some flag has changed. How to complete this without blocking the rest of my application?
Using a timer should do the trick
if you need to use a thread then here is an example
void Main() { System.Threading.Thread check= new System.Threading.Thread(CheckMethod); check.Start(); } private void CheckMethod() { //Code Thread.Sleep(500); }