Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for afterDone (0.06 sec)

  1. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/AbstractFuture.java

      }
    
      private void notifyAndClearListeners() {
        afterDone();
        // TODO(lukes): consider adding the StackOverflowError protection from the server version
        // TODO(cpovirk): consider clearing this.delegate
        for (Listener listener : listeners) {
          listener.execute();
        }
        listeners = null;
      }
    
      protected void afterDone() {}
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 19:37:41 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

        this.collectsValues = collectsValues;
      }
    
      @Override
      @SuppressWarnings("Interruption") // We are propagating an interrupt from a caller.
      protected final void afterDone() {
        super.afterDone();
    
        @RetainedLocalRef ImmutableCollection<? extends Future<?>> localFutures = futures;
        releaseResources(OUTPUT_FUTURE_DONE); // nulls out `futures`
    
        if (isCancelled() & localFutures != null) {
    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/src/com/google/common/util/concurrent/AbstractTransformFuture.java

        input.addListener(output, rejectionPropagatingExecutor(executor, output));
        return output;
      }
    
      /*
       * In certain circumstances, this field might theoretically not be visible to an afterDone() call
       * triggered by cancel(). For details, see the comments on the fields of TimeoutFuture.
       */
      @CheckForNull @LazyInit ListenableFuture<? extends I> inputFuture;
      @CheckForNull @LazyInit F function;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractCatchingFuture.java

        input.addListener(future, rejectionPropagatingExecutor(executor, future));
        return future;
      }
    
      /*
       * In certain circumstances, this field might theoretically not be visible to an afterDone() call
       * triggered by cancel(). For details, see the comments on the fields of TimeoutFuture.
       */
      @CheckForNull @LazyInit ListenableFuture<? extends V> inputFuture;
      @CheckForNull @LazyInit Class<X> exceptionType;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

       * to timer, and importantly this is the main situation in which we need to be able to see the
       * write.
       *
       * 2. visibility of the writes to an afterDone() call triggered by cancel():
       *
       * Since these fields are non-final that means that TimeoutFuture is not being 'safely published',
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

      // this would be observable from an afterDone callback
      public void testListenersExecuteImmediately_fromAfterDone() {
        AbstractFuture<String> f =
            new AbstractFuture<String>() {
              @Override
              protected void afterDone() {
                final AtomicBoolean ranImmediately = new AtomicBoolean();
                addListener(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/Futures.java

          if (localDelegate != null) {
            return "delegate=[" + localDelegate + "]";
          }
          return null;
        }
    
        @Override
        protected void afterDone() {
          delegate = null;
        }
      }
    
      /**
       * Creates a new {@code ListenableFuture} whose value is a list containing the values of all its
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/Futures.java

          if (localDelegate != null) {
            return "delegate=[" + localDelegate + "]";
          }
          return null;
        }
    
        @Override
        protected void afterDone() {
          delegate = null;
        }
      }
    
      /**
       * Creates a new {@code ListenableFuture} whose value is a list containing the values of all its
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 64.4K bytes
    - Viewed (0)
Back to top