Last active
March 31, 2018 06:02
-
-
Save chez14/1184ef42e8c18e90a7d23252cf4c10ee to your computer and use it in GitHub Desktop.
Testing Thread
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Test { | |
public void test() { | |
Thread saver = new Thread(() -> { | |
try { | |
td.save(location); | |
} catch (IOException ex) { | |
Logger.getLogger(frmMain.class.getName()) | |
.log(Level.SEVERE, null, ex); | |
} | |
}); | |
saver.start(); | |
saver.join(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment