[New] Added ThreadHelper with sleep() without throws
This commit is contained in:
parent
ac350c2ff2
commit
2d2072b0c4
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue