Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for succeeded (0.15 sec)

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

        ListenableFuture<List<String>> compound = successfulAsList(future1, future2, future3);
        compound.addListener(listener, directExecutor());
    
        // First is cancelled, second fails, third succeeds
        assertFalse(compound.isDone());
        future1.cancel(true);
        assertFalse(compound.isDone());
        future2.setException(new Throwable("failed2"));
        assertFalse(compound.isDone());
    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

        ListenableFuture<List<String>> compound = successfulAsList(future1, future2, future3);
        compound.addListener(listener, directExecutor());
    
        // First is cancelled, second fails, third succeeds
        assertFalse(compound.isDone());
        future1.cancel(true);
        assertFalse(compound.isDone());
        future2.setException(new Throwable("failed2"));
        assertFalse(compound.isDone());
    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

          return key.hashCode() ^ value.hashCode();
        }
    
        @Override
        public V setValue(V newValue) {
          V oldValue = put(key, newValue);
          value = newValue; // only if put succeeds
          return oldValue;
        }
    
        @Override
        public String toString() {
          return getKey() + "=" + getValue();
        }
      }
    
    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/util/concurrent/ClosingFuture.java

        return new ClosingFuture<>(future);
      }
    
      /**
       * Starts a {@link ClosingFuture} pipeline with a {@link ListenableFuture}.
       *
       * <p>If {@code future} succeeds, its value will be closed (using {@code closingExecutor)}) when
       * the pipeline is done, even if the pipeline is canceled or fails.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/LocalCache.java

          return key.hashCode() ^ value.hashCode();
        }
    
        @Override
        public V setValue(V newValue) {
          V oldValue = put(key, newValue);
          value = newValue; // only if put succeeds
          return oldValue;
        }
    
        @Override
        public String toString() {
          return getKey() + "=" + getValue();
        }
      }
    
    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