io.github.linpeilie.processor.utils.ThreadUtils Maven / Gradle / Ivy
The newest version!
package io.github.linpeilie.processor.utils;
public class ThreadUtils {
public static boolean sleep(long millis) {
if (millis > 0) {
try {
Thread.sleep(millis);
} catch (InterruptedException e) {
return false;
}
}
return true;
}
}