Skip to content

Instantly share code, notes, and snippets.

@chez14
Last active March 31, 2018 06:02
Show Gist options
  • Save chez14/1184ef42e8c18e90a7d23252cf4c10ee to your computer and use it in GitHub Desktop.
Save chez14/1184ef42e8c18e90a7d23252cf4c10ee to your computer and use it in GitHub Desktop.
Testing Thread
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