# | Line 241 | Line 241 | public class CountDownLatch { | |
---|---|---|
241 | */ | |
242 | public boolean await(long timeout, TimeUnit unit) | |
243 | throws InterruptedException { | |
244 | < | return sync.acquireSharedTimed(1, unit.toNanos(timeout)); |
244 | > | return sync.acquireSharedNanos(1, unit.toNanos(timeout)); |
245 | } | |
246 | ||
247 | /** |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |