java.lang.Object
com.renomad.minum.utils.MyThread
This class exists just to avoid needing to handle
the exception when I use a regular Thread.sleep()
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
sleep
(long millis) Same behavior asThread.sleep(long)
, but wrapped so that it prints the exception's stacktrace instead of letting it bubble up.
-
Method Details
-
sleep
public static boolean sleep(long millis) Same behavior asThread.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
-