<reponame>HyDevelop/HyCommonUtils
package cc.moecraft.utils;

/**
 * 此类由 Hykilpikonna 在 2018/09/16 创建!
 * Created by Hykilpikonna on 2018/09/16!
 * Github: https://github.com/hykilpikonna
 * QQ: <EMAIL> -OR- 871674895
 *
 * @author Hykilpikonna
 */
public class ThreadUtils
{
    /**
     * 不抛错的休眠
     * @param ms 时间 (毫秒)
     */
    public static void safeSleep(long ms)
    {
        try
        {
            Thread.sleep(ms);
        }
        catch (InterruptedException e)
        {
            throw new RuntimeException(e);
        }
    }
}
