Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for lazyTransform (0.07 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

          executor.shutdown();
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // lazyTransform
      public void testLazyTransform() throws Exception {
        FunctionSpy<Object, String> spy = new FunctionSpy<>(x -> "bar");
        Future<String> input = immediateFuture("foo");
        Future<String> transformed = lazyTransform(input, spy);
        spy.verifyCallCount(0);
        assertThat(getDone(transformed)).isEqualTo("bar");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

          executor.shutdown();
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // lazyTransform
      public void testLazyTransform() throws Exception {
        FunctionSpy<Object, String> spy = new FunctionSpy<>(x -> "bar");
        Future<String> input = immediateFuture("foo");
        Future<String> transformed = lazyTransform(input, spy);
        spy.verifyCallCount(0);
        assertThat(getDone(transformed)).isEqualTo("bar");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/util/concurrent/Futures.java

       * @since 10.0
       */
      @J2ktIncompatible
      @GwtIncompatible // TODO
      public static <I extends @Nullable Object, O extends @Nullable Object> Future<O> lazyTransform(
          Future<I> input, Function<? super I, ? extends O> function) {
        checkNotNull(input);
        checkNotNull(function);
        return new Future<O>() {
    
          @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 64.2K bytes
    - Click Count (0)
Back to Top