K
Ken Adams
Basically I implement the Runnable interface and in my run function I do
have a while loop that checks a condition to quit, but what if my run
function is long say calls a bunch of different methods. Do I have to wait
till all the methods finish. I want to be able to quit anytime in the
progress of these functions. I suppose I could check the condition between
each method call but that doesn't seem like a very good choice. Any
suggestions?
Thanks
have a while loop that checks a condition to quit, but what if my run
function is long say calls a bunch of different methods. Do I have to wait
till all the methods finish. I want to be able to quit anytime in the
progress of these functions. I suppose I could check the condition between
each method call but that doesn't seem like a very good choice. Any
suggestions?
Thanks