/** * A new method that interrupts the worker thread. Call this method to force the worker to stop * what it's doing. */ public void interrupt() { Thread t = threadVar.get(); if (t != null) { t.interrupt(); } threadVar.clear(); }
/** * A new method that interrupts the worker thread. Call this method to force the worker to stop * what it's doing. */ public void interrupt() { Thread t = threadVar.get(); if (t != null) { t.interrupt(); } threadVar.clear(); }