Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean outerMethod()
- {
- boolean success= performTask();
- if( success == false )
- {
- return false;
- }
- // more processing here if success == true
- }
- public void run()
- {
- boolean success = performTask();
- if( success == false )
- {
- /* here is where I want to exit this thread */
- }
- // further processing if success == true
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement