Class MyThread

java.lang.Object
com.renomad.minum.utils.MyThread

public final class MyThread extends Object
This class exists just to avoid needing to handle the exception when I use a regular Thread.sleep()
  • Method Details

    • sleep

      public static boolean sleep(long millis)
      Same behavior as Thread.sleep(long), but wrapped so that it prints the exception's stacktrace instead of letting it bubble up.
      Parameters:
      millis - length of time in milliseconds.
      Returns:
      false if the sleep succeeded without being interrupted