📄 threadutil.java
字号:
package jodd.util;
/**
* Thread utilities.
*/
public final class ThreadUtil {
/**
* Puts a thread to sleep, without throwing an InterruptedException.
*
* @param ms the length of time to sleep in milliseconds
*/
public static void sleep(long ms) {
try {
Thread.sleep(ms);
} catch (InterruptedException iex) {
}
}
/**
* Puts a thread to sleep forever.
*
* @see #sleep(long ms)
*/
public static void sleep() {
sleep(Long.MAX_VALUE);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -