All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.bingoohuang.utils.lang.Threadd Maven / Gradle / Ivy

The newest version!
package com.github.bingoohuang.utils.lang;

import java.util.concurrent.TimeUnit;

public class Threadd {
    public static void sleepMilis(long milis) {
        try {
            Thread.sleep(milis);
        } catch (InterruptedException e) {
        }
    }

    public static void sleep(long time, TimeUnit timeUnit) {
        sleepMilis(timeUnit.toMillis(time));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy