Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for ForwardingFuture (0.28 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava/src/com/google/common/util/concurrent/ForwardingFuture.java

     * invoke methods, they invoke methods on the {@code ForwardingFuture}.
     *
     * <p>Most subclasses can just use {@link SimpleForwardingFuture}.
     *
     * @author Sven Mawson
     * @since 1.0
     */
    @GwtCompatible
    public abstract class ForwardingFuture<V extends @Nullable Object> extends ForwardingObject
        implements Future<V> {
      /** Constructor for use by subclasses. */
      protected ForwardingFuture() {}
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 14:39:00 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/ForwardingFutureTest.java

    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /** Unit tests for {@link ForwardingFuture} */
    @NullUnmarked
    @GwtIncompatible
    @J2ktIncompatible
    public class ForwardingFutureTest extends TestCase {
      public void testForwarding() {
        ForwardingObjectTester.testForwardingObject(ForwardingFuture.class);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/util/concurrent/ForwardingListenableFuture.java

     *
     * @author Shardul Deo
     * @since 4.0
     */
    @GwtCompatible
    public abstract class ForwardingListenableFuture<V extends @Nullable Object>
        extends ForwardingFuture<V> implements ListenableFuture<V> {
    
      /** Constructor for use by subclasses. */
      protected ForwardingListenableFuture() {}
    
      @Override
      protected abstract ListenableFuture<? extends V> delegate();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 14:39:00 GMT 2026
    - 3K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/ForwardingFutureTest.java

    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /** Unit tests for {@link ForwardingFuture} */
    @NullUnmarked
    @GwtIncompatible
    @J2ktIncompatible
    public class ForwardingFutureTest extends TestCase {
      public void testForwarding() {
        ForwardingObjectTester.testForwardingObject(ForwardingFuture.class);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java

       * listeners will not be invoked.
       */
      private static final class ListenableFutureAdapter<V extends @Nullable Object>
          extends ForwardingFuture<V> implements ListenableFuture<V> {
    
        private static final ThreadFactory threadFactory =
            new ThreadFactoryBuilder()
                .setDaemon(true)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

        assertTrue(listenableFuture.isDone());
      }
    
      /** A Future that doesn't implement ListenableFuture, useful for testing listenInPoolThread. */
      private static final class NonListenableSettableFuture<V> extends ForwardingFuture<V> {
        static <V> NonListenableSettableFuture<V> create() {
          return new NonListenableSettableFuture<V>();
        }
    
        final SettableFuture<V> delegate = SettableFuture.create();
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

                    return new ThrowingScheduledFuture<>();
                  }
                },
                testRunnable);
        assertTrue(called);
      }
    
      private static final class ThrowingScheduledFuture<V> extends ForwardingFuture<V>
          implements ScheduledFuture<V> {
        @Override
        protected Future<V> delegate() {
          throw new UnsupportedOperationException("test should not care about this");
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

                    return new ThrowingScheduledFuture<>();
                  }
                },
                testRunnable);
        assertTrue(called);
      }
    
      private static final class ThrowingScheduledFuture<V> extends ForwardingFuture<V>
          implements ScheduledFuture<V> {
        @Override
        protected Future<V> delegate() {
          throw new UnsupportedOperationException("test should not care about this");
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 22.8K bytes
    - Click Count (0)
Back to Top