Java Sleep sleepNotException(long millis)

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

Description

sleep Not Exception

License

Open Source License

Declaration

public static void sleepNotException(long millis) 

Method Source Code

//package com.java2s;

public class Main {

    public static void sleepNotException(long millis) {
        try {/*from  www.  j  a v  a2 s.c o  m*/
            Thread.sleep(millis);
        } catch (Exception ex) {
            System.out.println("sleep ex," + ex.getClass().getSimpleName());
        }
    }
}

Related

  1. sleepMSInChunks(long ms)
  2. sleepNanos(final long nanoDuration)
  3. sleepNanos(long nanoseconds)
  4. sleepNoException(int ms)
  5. sleepNoShit(long nanos)
  6. sleepNoThrow(long timeoutMs)
  7. sleepNs(int ns)
  8. sleepNS(long ns)
  9. sleepOrCry(long timeToWait)