[New] Added ThreadHelper with sleep() without throws

This commit is contained in:
Robert von Burg 2021-08-03 10:22:29 +02:00
parent ac350c2ff2
commit 2d2072b0c4
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
package li.strolch.utils;
public class ThreadHelper {
public static void sleep(long millis) {
try {
Thread.sleep(millis);
} catch (InterruptedException e) {
throw new IllegalStateException(e);
}
}
}