- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for SafeBox (0.04 seconds)
-
android/guava/src/com/google/common/util/concurrent/Monitor.java
* {@code notifyAll()} must be used instead of {@code notify()} because there are two different * logical conditions being awaited. * * {@snippet : * public class SafeBox<V> { * private V value; * * public synchronized V get() throws InterruptedException { * while (value == null) { * wait(); * } * V result = value; * value = null;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jan 28 22:39:02 GMT 2026 - 43.5K bytes - Click Count (0)