- time
- the maximum time to wait
- unit
- the time unit of the time argument
Documentation for this section has not yet been entered.
Type Reason Java.Lang.InterruptedException if the current thread is interrupted (and interruption of thread suspension is supported)
Causes the current thread to wait until it is signalled or interrupted, or the specified waiting time elapses. This method is behaviorally equivalent to:
java Example
awaitNanos(unit.toNanos(time)) > 0