Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for transformAsync (0.21 sec)

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

       *     queryFuture.transformAsync((closer, result) -> result.getRowsClosingFuture(), executor);
       *
       * // Result.writeRowsToOutputStreamFuture() returns a ListenableFuture that resolves to the
       * // number of written rows. openOutputFile() returns a FileOutputStream (which implements
       * // Closeable).
       * ClosingFuture<Integer> rowsFuture2 =
       *     queryFuture.transformAsync(
       *         (closer, result) -> {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java

     * limitations under the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.util.concurrent.Futures.transformAsync;
    import static com.google.common.util.concurrent.MoreExecutors.directExecutor;
    import static com.google.common.util.concurrent.Uninterruptibles.awaitUninterruptibly;
    import static org.junit.Assert.assertThrows;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java

     * limitations under the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.util.concurrent.Futures.transformAsync;
    import static com.google.common.util.concurrent.MoreExecutors.directExecutor;
    import static com.google.common.util.concurrent.Uninterruptibles.awaitUninterruptibly;
    import static org.junit.Assert.assertThrows;
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        assertClosed(closeable1, closeable2);
      }
    
      public void testTransformAsync() throws Exception {
        ClosingFuture<String> closingFuture =
            ClosingFuture.from(immediateFuture("value"))
                .transformAsync(
                    new AsyncClosingFunction<String, TestCloseable>() {
                      @Override
                      public ClosingFuture<TestCloseable> apply(DeferredCloser closer, String v)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

          ListenableFuture<Object> unused = transformAsync(root, asyncIdentity(), directExecutor());
          root.set("foo");
        }
    
        SettableFuture<Object> root = SettableFuture.create();
        ListenableFuture<Object> output = root;
        for (int i = 0; i < 10000; i++) {
          output = transformAsync(output, asyncIdentity(), directExecutor());
        }
        try {
          root.set("foo");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        assertClosed(closeable1, closeable2);
      }
    
      public void testTransformAsync() throws Exception {
        ClosingFuture<String> closingFuture =
            ClosingFuture.from(immediateFuture("value"))
                .transformAsync(
                    new AsyncClosingFunction<String, TestCloseable>() {
                      @Override
                      public ClosingFuture<TestCloseable> apply(DeferredCloser closer, String v)
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

          ListenableFuture<Object> unused = transformAsync(root, asyncIdentity(), directExecutor());
          root.set("foo");
        }
    
        SettableFuture<Object> root = SettableFuture.create();
        ListenableFuture<Object> output = root;
        for (int i = 0; i < 10000; i++) {
          output = transformAsync(output, asyncIdentity(), directExecutor());
        }
        try {
          root.set("foo");
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AsyncFunction.java

    import java.util.concurrent.Future;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Transforms a value, possibly asynchronously. For an example usage and more information, see
     * {@link Futures#transformAsync(ListenableFuture, AsyncFunction, Executor)}.
     *
     * @author Chris Povirk
     * @since 11.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sun Jun 20 10:45:35 GMT 2021
    - 1.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

        assertThat(f.get()).isEqualTo(2);
      }
    
      public void testTransformAsync() throws Exception {
        FluentFuture<Integer> f =
            FluentFuture.from(immediateFuture(1))
                .transformAsync(
                    new AsyncFunction<Integer, Integer>() {
                      @Override
                      public ListenableFuture<Integer> apply(Integer input) {
                        return immediateFuture(input + 1);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

       *     input's failure (if not)
       */
      public final <T extends @Nullable Object> FluentFuture<T> transformAsync(
          AsyncFunction<? super V, T> function, Executor executor) {
        return (FluentFuture<T>) Futures.transformAsync(this, function, executor);
      }
    
      /**
       * Returns a new {@code Future} whose result is derived from the result of this {@code Future}. If
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 11 19:08:44 GMT 2023
    - 18.7K bytes
    - Viewed (0)
Back to top