Properly exit BlockingHashMap#get if we time out.
Dieser Commit ist enthalten in:
Ursprung
95438c1861
Commit
093a6f12bf
@ -114,6 +114,9 @@ public class BlockingHashMap<TKey, TValue> {
|
||||
if (remainingTime > 0) {
|
||||
TimeUnit.NANOSECONDS.timedWait(lock, remainingTime);
|
||||
value = backingMap.get(key);
|
||||
} else {
|
||||
// Timeout elapsed
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren