This commit is contained in:
Reinhard Pointner 2016-10-24 20:20:13 +08:00
parent c2fc4c2913
commit e2d9b9dd81
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ public final class SwingUI {
// run spawn new EDT and block current EDT
SecondaryLoop secondaryLoop = Toolkit.getDefaultToolkit().getSystemEventQueue().createSecondaryLoop();
SwingWorker<T, Void> worker = newSwingWorker(supplier, null, null, () -> secondaryLoop.exit());
SwingWorker<T, Void> worker = newSwingWorker(supplier, null, null, secondaryLoop::exit);
worker.execute();
// wait for worker to finish without blocking the EDT