M
Marwan
Hi all,
Is there a way to call a method with a timer? Such that if the method
does not complete before the timer hits 0, the method returns false.
for example:
int i=0;
while ( !methodInvaction() && i++<3 ) {
}
boolean methodInvocation() {
//
...
//
return true; (2)
}
A timer would be added such that if methodInvocation doesn't hit (2)
in, say, x milliseconds, the method would return false. And 'i' is
just to have it try upto 3 times.
Thanks,
Marwan
Is there a way to call a method with a timer? Such that if the method
does not complete before the timer hits 0, the method returns false.
for example:
int i=0;
while ( !methodInvaction() && i++<3 ) {
}
boolean methodInvocation() {
//
...
//
return true; (2)
}
A timer would be added such that if methodInvocation doesn't hit (2)
in, say, x milliseconds, the method would return false. And 'i' is
just to have it try upto 3 times.
Thanks,
Marwan