Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for setException (0.16 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        SettableFuture<Object> future3 = SettableFuture.create();
        ListenableFuture<List<Object>> all = allAsList(future1, future2, future3);
    
        future1.setException(new MyException());
        future2.setException(new MyException());
        future3.setException(new MyException());
    
        try {
          getDone(all);
          fail();
        } catch (ExecutionException expected) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        SettableFuture<Object> future3 = SettableFuture.create();
        ListenableFuture<List<Object>> all = allAsList(future1, future2, future3);
    
        future1.setException(new MyException());
        future2.setException(new MyException());
        future3.setException(new MyException());
    
        try {
          getDone(all);
          fail();
        } catch (ExecutionException expected) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/LocalCache.java

        @CanIgnoreReturnValue
        public boolean set(@CheckForNull V newValue) {
          return futureValue.set(newValue);
        }
    
        @CanIgnoreReturnValue
        public boolean setException(Throwable t) {
          return futureValue.setException(t);
        }
    
        private ListenableFuture<V> fullyFailedFuture(Throwable t) {
          return Futures.immediateFailedFuture(t);
        }
    
        @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/LocalCache.java

        @CanIgnoreReturnValue
        public boolean set(@CheckForNull V newValue) {
          return futureValue.set(newValue);
        }
    
        @CanIgnoreReturnValue
        public boolean setException(Throwable t) {
          return futureValue.setException(t);
        }
    
        private ListenableFuture<V> fullyFailedFuture(Throwable t) {
          return Futures.immediateFailedFuture(t);
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
Back to top