- millis
- The maximum time to wait (in milliseconds).
- nanos
- Extra nanosecond precision
Type Reason Java.Lang.InterruptedException if the current thread has been interrupted. The interrupted status of the current thread will be cleared before the exception is thrown.
Blocks the current Thread (Thread.currentThread()) until the receiver finishes its execution and dies or the specified timeout expires, whatever happens first.
A timeout of zero means the calling thread should wait forever unless interrupted.