Java Sleep sleepDeep(long millis)

Here you can find the source of sleepDeep(long millis)

Description

Sleep, suppressing exceptions

License

Open Source License

Parameter

Parameter Description
millis a parameter

Declaration

public static void sleepDeep(long millis) 

Method Source Code

//package com.java2s;
/**/*from ww w  . j  av  a2 s .c om*/
 * Copyright (c) 2012 Todoroo Inc
 *
 * See the file "LICENSE" for the full license governing this code.
 */

public class Main {
    /**
     * Sleep, suppressing exceptions
     *
     * @param millis
     */
    public static void sleepDeep(long millis) {
        try {
            Thread.sleep(millis);
        } catch (InterruptedException e) {
            // do nothing
        }
    }
}

Related

  1. sleepAtLeast(long milliseconds)
  2. sleepAtLeast(long milliseconds)
  3. sleepBeforeRetry(int attemptNumber)
  4. sleepButInterruptable(long msecs)
  5. sleepCurrentThread()
  6. sleepExp(int countFailures)
  7. sleepFixed(int milliSecond)
  8. sleepFor(int delay )
  9. sleepFor(int sleepDurationInMilliseconds)