Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for tryInternalFastPathGetFailure (0.24 sec)

  1. 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);
      }
    
    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)
  2. 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);
      }
    
    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)
  3. 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
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  4. 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) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  5. 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) {
    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)
  6. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

          return requireNonNull(v);
        }
        if (future instanceof InternalFutureFailureAccess) {
          Throwable throwable =
              InternalFutures.tryInternalFastPathGetFailure((InternalFutureFailureAccess) future);
          if (throwable != null) {
            return new Failure(throwable);
          }
        }
        boolean wasCancelled = future.isCancelled();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  7. 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 {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
Back to top