A
Alex
I've create a thread using SwingWorker but when I call the interrupt()
method it doesn't get interrupted.
I've checked the execution path and t.interrupt() DOES get executed in the
SwingWorker interrupt() method shown below.
public void interrupt() {
Thread t = threadVar.get();
if (t != null) {
t.interrupt();
}
threadVar.clear();
}
method it doesn't get interrupted.
I've checked the execution path and t.interrupt() DOES get executed in the
SwingWorker interrupt() method shown below.
public void interrupt() {
Thread t = threadVar.get();
if (t != null) {
t.interrupt();
}
threadVar.clear();
}