Skip to content

Instantly share code, notes, and snippets.

@alexsnaps
Created March 12, 2014 13:44
Show Gist options
  • Save alexsnaps/9507197 to your computer and use it in GitHub Desktop.
Save alexsnaps/9507197 to your computer and use it in GitHub Desktop.
// I probably should have this code in its own method, to explain the intent with a proper method name...
while (true) {
try {
Thread.currentThread().join();
} catch (InterruptedException f) {
//ignore
}
}
// I also first thought I was on crack when I wrote these lines... Yet, as it turns out, this code is correct!
@amaurycrickx
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment