Java Sleep sleep(long millis)

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

Description

Sleep thread without exception.

License

Apache License

Parameter

Parameter Description
millis a parameter

Declaration

public static void sleep(long millis) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    /**//from   www .  j  a  v  a  2 s. c  o m
     * Sleep thread without exception.
     * 
     * @param millis
     */
    public static void sleep(long millis) {
        try {
            Thread.sleep(millis);
        } catch (Throwable e) {
            e.printStackTrace();
        }
    }
}

Related

  1. sleep(long millis)
  2. sleep(long millis)
  3. sleep(long millis)
  4. sleep(long millis)
  5. sleep(long millis)
  6. sleep(long millis)
  7. sleep(long millis)
  8. sleep(Long millis)
  9. sleep(long millis)