Module xaos.core

Class ThreadUtils

    • Method Detail

      • sleep

        public static void sleep​(long millis)
        Invokes Thread.sleep(long) taking care of possible InterruptedExceptions by propagating the thread interruption.
        Parameters:
        millis - The sleep time in milliseconds.
      • sleep

        public static void sleep​(long millis,
                                 int nanos)
        Invokes Thread.sleep(long) taking care of possible possible InterruptedExceptions by propagating the thread interruption.
        Parameters:
        millis - The sleep time in milliseconds.
        nanos - 0-999999 additional nanoseconds to sleep.