- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for newGuard (0.04 seconds)
-
android/guava/src/com/google/common/util/concurrent/Monitor.java
* {@snippet : * public class SafeBox<V> { * private V value; * private final Monitor monitor = new Monitor(); * private final Monitor.Guard valuePresent = monitor.newGuard(() -> value != null); * private final Monitor.Guard valueAbsent = monitor.newGuard(() -> value == null); * * public V get() throws InterruptedException { * monitor.enterWhen(valuePresent); * try { * V result = value;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)