Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for tryInternalFastPathGetFailure (0.17 sec)

  1. 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);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  2. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  3. 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) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 19:37:41 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top