I have scenario: I want to wait, until something is false. Usually takes likes 20 seconds or so.
while(foo) {
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
Or just go like this?
while(foo) {
}