Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 26 of 26 for setFuture (0.06 seconds)

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

        SettableFuture<String> nested = SettableFuture.create();
        assertTrue(future.setFuture(nested));
        // Later attempts to set the future should return false.
        assertFalse(future.set("x"));
        assertFalse(future.setException(new Exception("bar")));
        assertFalse(future.setFuture(SettableFuture.create()));
        // Check that the future has been set properly.
        assertFalse(future.isDone());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.4K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

       *   <li>{@link Cancellation} terminal state, {@code cancel} was called.
       *   <li>{@link Failure} terminal state, {@code setException} was called.
       *   <li>{@link DelegatingToFuture} intermediate state, {@code setFuture} was called.
       *   <li>{@link #NULL} terminal state, {@code set(null)} was called.
       *   <li>Any other non-null value, terminal state, {@code set} was called with a non-null
       *       argument.
       * </ul>
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 33.2K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/util/concurrent/CombinedFuture.java

                  + "Did you mean to return immediateFuture(null)? %s",
              callable);
        }
    
        @Override
        void setValue(ListenableFuture<V> value) {
          CombinedFuture.this.setFuture(value);
        }
    
        @Override
        String toPendingString() {
          return callable.toString();
        }
      }
    
      @WeakOuter
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 6.8K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

           * even with the above null checks.)
           */
          timeoutFutureRef = null;
          if (delegate.isDone()) {
            timeoutFuture.setFuture(delegate);
          } else {
            try {
              @RetainedLocalRef ScheduledFuture<?> timer = timeoutFuture.timer;
              timeoutFuture.timer = null; // Don't include already elapsed delay in delegate.toString()
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 8K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        assertThat(futureResult.toString())
            .matches(
                "CombinedFuture@\\w+\\[status=PENDING,"
                    + " setFuture=\\[SettableFuture@\\w+\\[status=PENDING]]]");
    
        // Future complete
        resultOfCombiner.set(createCombinedResult(getDone(futureInteger), getDone(futureBoolean)));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        assertThat(futureResult.toString())
            .matches(
                "CombinedFuture@\\w+\\[status=PENDING,"
                    + " setFuture=\\[SettableFuture@\\w+\\[status=PENDING]]]");
    
        // Future complete
        resultOfCombiner.set(createCombinedResult(getDone(futureInteger), getDone(futureBoolean)));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
Back to Top