Guys, there is a thread in which there are about 100 methods. Which in turn goes on for 10 minutes. Such a test frame.
Thread testRunningThread = null;
and challenge
testRunningThread = new Thread(util); testRunningThread.start();
Stop passes so
if (testRunningThread != null) { util.setInterruptTests(new AtomicBoolean(true)); }
But it is very necessary to stop the thread immediately. Without waiting for the end of the end of the robots currently running method. How to spend it?