- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for constantAsyncCallable (0.06 seconds)
-
android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
beforeFunction.countDown(); executor.shutdown(); assertTrue(executor.awaitTermination(5, SECONDS)); assertFalse(callableCalled.get()); } private static <T> AsyncCallable<T> constantAsyncCallable(ListenableFuture<T> returnValue) { return () -> returnValue; } /** Runnable which can be called a single time, and only after {@link #expectCall} is called. */ // TODO(cpovirk): top-level class?
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 134K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
beforeFunction.countDown(); executor.shutdown(); assertTrue(executor.awaitTermination(5, SECONDS)); assertFalse(callableCalled.get()); } private static <T> AsyncCallable<T> constantAsyncCallable(ListenableFuture<T> returnValue) { return () -> returnValue; } /** Runnable which can be called a single time, and only after {@link #expectCall} is called. */ // TODO(cpovirk): top-level class?
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 134K bytes - Click Count (0)