- Sort Score
- Num 10 results
- Language All
Results 1 - 8 of 8 for catchingAsync (0.07 seconds)
-
android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
}; } // catchingAsync tests cloned from the old withFallback tests: public void testCatchingAsync_inputDoesNotRaiseException() throws Exception { AsyncFunction<Throwable, Integer> fallback = unexpectedAsyncFunction(); ListenableFuture<Integer> originalFuture = immediateFuture(7); ListenableFuture<Integer> faultTolerantFuture =
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
}; } // catchingAsync tests cloned from the old withFallback tests: public void testCatchingAsync_inputDoesNotRaiseException() throws Exception { AsyncFunction<Throwable, Integer> fallback = unexpectedAsyncFunction(); ListenableFuture<Integer> originalFuture = immediateFuture(7); ListenableFuture<Integer> faultTolerantFuture =
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/FluentFutureTest.java
} public void testCatchingAsync() throws Exception { FluentFuture<?> f = FluentFuture.from(immediateFailedFuture(new CustomRuntimeException())) .catchingAsync(Throwable.class, t -> immediateFuture(t.getClass()), directExecutor()); assertThat(f.get()).isEqualTo(CustomRuntimeException.class); } public void testTransform() throws Exception { FluentFuture<Integer> f =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 4.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java
} public void testCatchingAsync() throws Exception { FluentFuture<?> f = FluentFuture.from(immediateFailedFuture(new CustomRuntimeException())) .catchingAsync(Throwable.class, t -> immediateFuture(t.getClass()), directExecutor()); assertThat(f.get()).isEqualTo(CustomRuntimeException.class); } public void testTransform() throws Exception { FluentFuture<Integer> f =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 4.7K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/ClosingFuture.java
@Override public String toString() { return fallback.toString(); } }; // TODO(dpb): Switch to future.catchingSync when that exists (passing a throwing function). return derive(state.future.catchingAsync(exceptionType, applyFallback, executor)); } /** * Returns a new {@code ClosingFuture} pipeline step derived from this one by applying a functionCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 101.7K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/Futures.java
* * // Falling back to a zero counter in case an exception happens when * // processing the RPC to fetch counters. * ListenableFuture<Integer> faultTolerantFuture = Futures.catchingAsync( * fetchCounterFuture, FetchException.class, x -> immediateFuture(0), directExecutor()); * } * * <p>The fallback can also choose to propagate the original exception when desired: *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 64.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
} public void testCatchingAsync_preventsFurtherOperations() { ClosingFuture<String> closingFuture = ClosingFuture.from(immediateFuture("value1")); ClosingFuture<String> unused = closingFuture.catchingAsync( Exception.class, withoutCloser(x -> immediateFuture("value2")), executor); assertDerivingThrowsIllegalStateException(closingFuture); assertFinalStepThrowsIllegalStateException(closingFuture); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 63K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
} public void testCatchingAsync_preventsFurtherOperations() { ClosingFuture<String> closingFuture = ClosingFuture.from(immediateFuture("value1")); ClosingFuture<String> unused = closingFuture.catchingAsync( Exception.class, withoutCloser(x -> immediateFuture("value2")), executor); assertDerivingThrowsIllegalStateException(closingFuture); assertFinalStepThrowsIllegalStateException(closingFuture); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 63K bytes - Click Count (0)