S
sconeek
Hi all,
I am writing a Java app, where I need to wait for 10 seconds after a
condition holds good and then check if the same condition still holds
true and if yes then do something.
Essentially I have this,
if (mDt.getTime() == lsEtTSt.getTime()) {
// wait for 10 seconds
// check for the condition again
// Do something
}
I dont want to use Thread.sleep. If somebody could suggest a loop or
something which goes on for 10seconds that would be really great.
thanks.
I am writing a Java app, where I need to wait for 10 seconds after a
condition holds good and then check if the same condition still holds
true and if yes then do something.
Essentially I have this,
if (mDt.getTime() == lsEtTSt.getTime()) {
// wait for 10 seconds
// check for the condition again
// Do something
}
I dont want to use Thread.sleep. If somebody could suggest a loop or
something which goes on for 10seconds that would be really great.
thanks.