Class Sleeper


  • public class Sleeper
    extends Object
    Encapsulates the InterruptedException from Thread.sleep(ms).
    • Constructor Detail

      • Sleeper

        public Sleeper()
    • Method Detail

      • sleep

        public static void sleep​(String humanTime)
        Sleep a given time (time is parsed with HumanTime)
        Parameters:
        humanTime - The time in a format such as 30m10s10ms
      • sleep

        public static void sleep​(long millis)
        Sleep the given milliseconds, swallowing the exception
        Parameters:
        millis - time in milliseconds