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

cl.core.util.Threads Maven / Gradle / Ivy

The newest version!
package cl.core.util;

public final class Threads {
    
    private Threads() {}
    
    /**
     * Sleep for given number of milliseconds. While sleeping, the thread may be interrupted.
     */
    public static void sleep(long ms) {
        try {
            Thread.sleep(ms);
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
        }
    }
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy