de.thksystems.util.concurrent.ThreadUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cumin Show documentation
Show all versions of cumin Show documentation
Commons for lang, crypto, xml, dom, text, csv, reflection, annotations, parsing, ...
package de.thksystems.util.concurrent;
public class ThreadUtils {
private ThreadUtils() {
}
/**
* Calling {@link Thread#sleep(long)} by ignoring the {@link InterruptedException}.
*
* Use with care!
*/
public static void sleepWithoutException(long l) {
try {
Thread.sleep(l);
} catch (InterruptedException e) {
// IGNORE
}
}
}