Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for AbstractFuture (0.27 sec)

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

          this.delegate = delegate;
        }
    
        @Override
        public void run() {
          if (isCancelled()) {
            return;
          }
    
          if (delegate instanceof AbstractFuture) {
            AbstractFuture<? extends V> other = (AbstractFuture<? extends V>) delegate;
            value = other.value;
            throwable = other.throwable;
            // don't copy the mayInterruptIfRunning bit, for consistency with the server, to ensure that
    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-tests/test/com/google/common/util/concurrent/UntrustedInputFutureTest.java

    import com.google.common.util.concurrent.AbstractFuture.TrustedFuture;
    
    /**
     * Tests for {@link AbstractFuture} that use a non-{@link TrustedFuture} for {@link
     * AbstractFuture#setFuture} calls.
     */
    @GwtCompatible
    public class UntrustedInputFutureTest extends AbstractAbstractFutureTest {
      @Override
      AbstractFuture<Integer> newDelegate() {
        AbstractFuture<Integer> future = new AbstractFuture<Integer>() {};
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Dec 16 19:54:45 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        AbstractFuture<String> evilFuture =
            new AbstractFuture<String>() {
              @Override
              public void addListener(Runnable r, Executor e) {
                throw exception;
              }
            };
        AbstractFuture<String> normalFuture = new AbstractFuture<String>() {};
        normalFuture.setFuture(evilFuture);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

    /**
     * Base class for tests for emulated {@link AbstractFuture} that allow subclasses to swap in a
     * different "source Future" for {@link AbstractFuture#setFuture} calls.
     */
    @GwtCompatible(emulated = true)
    abstract class AbstractAbstractFutureTest extends TestCase {
      private TestedFuture<Integer> future;
      private AbstractFuture<Integer> delegate;
    
      abstract AbstractFuture<Integer> newDelegate();
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/TrustedInputFutureTest.java

    import com.google.common.util.concurrent.AbstractFuture.TrustedFuture;
    
    /**
     * Tests for {@link AbstractFuture} that use a {@link TrustedFuture} for {@link
     * AbstractFuture#setFuture} calls.
     */
    @GwtCompatible
    public class TrustedInputFutureTest extends AbstractAbstractFutureTest {
      @Override
      AbstractFuture<Integer> newDelegate() {
        AbstractFuture<Integer> future = new TrustedFuture<Integer>() {};
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Dec 16 19:54:45 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

    /**
     * Base class for tests for emulated {@link AbstractFuture} that allow subclasses to swap in a
     * different "source Future" for {@link AbstractFuture#setFuture} calls.
     */
    @GwtCompatible(emulated = true)
    abstract class AbstractAbstractFutureTest extends TestCase {
      private TestedFuture<Integer> future;
      private AbstractFuture<Integer> delegate;
    
      abstract AbstractFuture<Integer> newDelegate();
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/util/concurrent/AbstractFutureFootprintBenchmark.java

    import com.google.common.util.concurrent.AbstractFutureBenchmarks.Impl;
    import java.util.HashSet;
    import java.util.Set;
    import java.util.concurrent.Executor;
    
    /** Measures the size of AbstractFuture implementations. */
    public class AbstractFutureFootprintBenchmark {
    
      enum State {
        NOT_DONE,
        FINISHED,
        CANCELLED,
        FAILED
      }
    
      @Param State state;
      @Param Impl impl;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

    import java.util.concurrent.Executor;
    import java.util.concurrent.Future;
    import java.util.concurrent.TimeUnit;
    import javax.annotation.concurrent.GuardedBy;
    import junit.framework.TestCase;
    
    /** Tests for {@link AbstractFuture} with the cancellation cause system property set */
    @AndroidIncompatible // custom classloading
    
    public class AbstractFutureCancellationCauseTest extends TestCase {
    
      private ClassLoader oldClassLoader;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

    import java.util.concurrent.Executor;
    import java.util.concurrent.Future;
    import java.util.concurrent.TimeUnit;
    import javax.annotation.concurrent.GuardedBy;
    import junit.framework.TestCase;
    
    /** Tests for {@link AbstractFuture} with the cancellation cause system property set */
    @AndroidIncompatible // custom classloading
    
    public class AbstractFutureCancellationCauseTest extends TestCase {
    
      private ClassLoader oldClassLoader;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

         *
         * - Any kind of Error from a listener. Even if we could distinguish that case (by exposing some
         * extra state from AbstractFuture), our options are limited: A call to setException() would be
         * a no-op. We could log, but if that's what we really want, we should modify
         * AbstractFuture.executeListener to do so, since that method would have the ability to continue
         * to execute other listeners.
         *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top