- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 34 for setException (0.16 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 13 14:28:25 GMT 2024 - 46.8K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/CombinedFuture.java
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 01 21:46:34 GMT 2024 - 6.8K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/SingleThreadAbstractFutureBenchmark.java
long r = 0; List<Facade<Integer>> list = new ArrayList<>(reps); for (int i = 0; i < reps; i++) { final Facade<Integer> localFuture = impl.newFacade(); list.add(localFuture); localFuture.setException(exception); } for (int i = 0; i < reps; i++) { Facade<Integer> facade = list.get(i); try { facade.get(); r++; } catch (ExecutionException e) { r += 2;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jul 16 17:22:27 GMT 2019 - 3.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 13 14:28:25 GMT 2024 - 46.8K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/util/concurrent/AbstractFutureFootprintBenchmark.java
case NOT_DONE: break; case FINISHED: f.set(null); break; case CANCELLED: f.cancel(false); break; case FAILED: f.setException(new Exception()); break; default: throw new AssertionError(); } return f; }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Jan 17 15:34:54 GMT 2018 - 3K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/AbstractFutureFootprintBenchmark.java
case NOT_DONE: break; case FINISHED: f.set(null); break; case CANCELLED: f.cancel(false); break; case FAILED: f.setException(new Exception()); break; default: throw new AssertionError(); } return f; }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Jan 17 15:34:54 GMT 2018 - 3K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/util/concurrent/SingleThreadAbstractFutureBenchmark.java
long r = 0; List<Facade<Integer>> list = new ArrayList<>(reps); for (int i = 0; i < reps; i++) { final Facade<Integer> localFuture = impl.newFacade(); list.add(localFuture); localFuture.setException(exception); } for (int i = 0; i < reps; i++) { Facade<Integer> facade = list.get(i); try { facade.get(); r++; } catch (ExecutionException e) { r += 2;
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Jul 16 17:22:27 GMT 2019 - 3.6K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/AbstractFuture.java
if (isDone()) { listener.execute(); } else { listeners.add(listener); } } @CanIgnoreReturnValue protected boolean setException(Throwable throwable) { checkNotNull(throwable); if (!state.permitsPublicUserToTransitionTo(State.FAILURE)) { return false; } forceSetException(throwable); return true; }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Jan 22 19:37:41 GMT 2024 - 12.3K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractFuture.java
* to set the result of the computation through the protected methods {@link #set(Object)}, {@link * #setFuture(ListenableFuture)} and {@link #setException(Throwable)}. Subclasses may also override * {@link #afterDone()}, which will be invoked automatically when the future completes. Subclasses * should rarely override other methods. * * @author Sven Mawson
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 22 21:17:24 GMT 2024 - 63K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/MoreExecutors.java
@Override public void run() { try { delegate.run(); } catch (Throwable t) { // Any Exception is either a RuntimeException or sneaky checked exception. setException(t); throw t; } } @Override protected String pendingToString() { return "task=[" + delegate + "]"; } } } /*
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Apr 17 16:33:44 GMT 2024 - 41.8K bytes - Viewed (0)