MCPcopy Create free account
hub / github.com/ReadyTalk/avian / timedWait

Method timedWait

classpath/java/util/concurrent/TimeUnit.java:393–399  ·  view source on GitHub ↗
(Object obj, long timeout)

Source from the content-addressed store, hash-verified

391 abstract int excessNanos(long d, long m);
392
393 public void timedWait(Object obj, long timeout) throws InterruptedException {
394 if (timeout > 0) {
395 long ms = toMillis(timeout);
396 int ns = excessNanos(timeout, ms);
397 obj.wait(ms, ns);
398 }
399 }
400
401 public void timedJoin(Thread thread, long timeout) throws InterruptedException {
402 if (timeout > 0) {

Callers

nothing calls this directly

Calls 3

toMillisMethod · 0.95
excessNanosMethod · 0.95
waitMethod · 0.45

Tested by

no test coverage detected