In a WPF form I'm calling doSomeFunction() method in a while loop. This will run until x == y
which works properly.
while (x != y)
{
doSomeFunction();
}
I need to add additional functionality, which needs to check this condition until 5 minutes only. After the 5 minutes if x != y
I need to return.