List of utility methods to do Thread Sleep
void | sleep(long ms) sleep try { Thread.sleep(ms); } catch (InterruptedException e) { |
boolean | sleep(long ms) sleep try { if (ms > 0) { Thread.sleep(ms); return true; } catch (InterruptedException e) { return false; |
void | safeSleep(long millis) safe Sleep try { Thread.sleep(millis); } catch (InterruptedException e) { |
void | sleep(long milliseconds) Waits n milliseconds. try { Thread.sleep(milliseconds); } catch (InterruptedException e) { Log.e(LOG_TAG, "Unable to sleep " + milliseconds, e); |
void | doSleep(long ms) do Sleep try { Thread.sleep(ms); } catch (InterruptedException ie) { |
void | sleep(double numSeconds) Cause the current thread to sleep for numSeconds. assert numSeconds >= 0.0 : "numSeconds must be >= 0.0"; try { Thread.sleep((int) (numSeconds * 1000.0)); } catch (InterruptedException e) { |