- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for tryInternalFastPathGetFailure (0.2 sec)
-
guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
return (Future<?>) settableFutureClass.getMethod("create").invoke(null); } private Throwable tryInternalFastPathGetFailure(Future<?> future) throws Exception { Method tryInternalFastPathGetFailureMethod = abstractFutureClass.getDeclaredMethod("tryInternalFastPathGetFailure"); tryInternalFastPathGetFailureMethod.setAccessible(true);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 6.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
return (Future<?>) settableFutureClass.getMethod("create").invoke(null); } private Throwable tryInternalFastPathGetFailure(Future<?> future) throws Exception { Method tryInternalFastPathGetFailureMethod = abstractFutureClass.getDeclaredMethod("tryInternalFastPathGetFailure"); tryInternalFastPathGetFailureMethod.setAccessible(true);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 6.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
future.set("261"); assertThat(future.tryInternalFastPathGetFailure()).isNull(); } public void testTrustedGetFailure_failed() { SettableFuture<String> future = SettableFuture.create(); Throwable failure = new Throwable(); future.setException(failure); assertThat(future.tryInternalFastPathGetFailure()).isEqualTo(failure); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 47.1K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AggregateFuture.java
final void addInitialException(Set<Throwable> seen) { checkNotNull(seen); if (!isCancelled()) { /* * requireNonNull is safe because: * * - This is a TrustedFuture, so tryInternalFastPathGetFailure will in fact return the failure * cause if this Future has failed. * * - And this future *has* failed: This method is called only from handleException (through
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 13:13:32 UTC 2024 - 16.2K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractCatchingFuture.java
V sourceResult = null; Throwable throwable = null; try { if (localInputFuture instanceof InternalFutureFailureAccess) { throwable = InternalFutures.tryInternalFastPathGetFailure( (InternalFutureFailureAccess) localInputFuture); } if (throwable == null) { sourceResult = getDone(localInputFuture); } } catch (ExecutionException e) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 13:13:32 UTC 2024 - 9.1K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/AbstractFuture.java
for (Listener listener : listeners) { listener.execute(); } listeners = null; } protected void afterDone() {} @Override protected final Throwable tryInternalFastPathGetFailure() { if (this instanceof Trusted) { return state == State.FAILURE ? throwable : null; } return null; } final void maybePropagateCancellationTo(@Nullable Future<?> related) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jan 22 19:37:41 UTC 2024 - 12.3K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Futures.java
this.callback = callback; } @Override public void run() { if (future instanceof InternalFutureFailureAccess) { Throwable failure = InternalFutures.tryInternalFastPathGetFailure((InternalFutureFailureAccess) future); if (failure != null) { callback.onFailure(failure); return; } } final V value; try {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 13:13:32 UTC 2024 - 64.7K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Futures.java
this.callback = callback; } @Override public void run() { if (future instanceof InternalFutureFailureAccess) { Throwable failure = InternalFutures.tryInternalFastPathGetFailure((InternalFutureFailureAccess) future); if (failure != null) { callback.onFailure(failure); return; } } final V value; try {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 13:13:32 UTC 2024 - 64.4K bytes - Viewed (0)