- timeout
- the maximum time to wait
- unit
- the time unit of the timeout argument
Documentation for this section has not yet been entered.
Type Reason Java.Lang.InterruptedException if the current thread is interrupted while waiting
Causes the current thread to wait until the latch has counted down to zero, unless the thread is Java.Lang.Thread.Interrupt, or the specified waiting time elapses.
If the current count is zero then this method returns immediately with the value true.
If the current count is greater than zero then the current thread becomes disabled for thread scheduling purposes and lies dormant until one of three things happen:
If the count reaches zero then the method returns with the value true.
If the current thread:
If the specified waiting time elapses then the value false is returned. If the time is less than or equal to zero, the method will not wait at all.