- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for transformAsync (0.46 sec)
-
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) -> {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 23 15:26:56 UTC 2025 - 97.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java
package com.google.common.util.concurrent; import static com.google.common.truth.Truth.assertThat; import static com.google.common.util.concurrent.Futures.immediateFuture; 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;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 6.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java
package com.google.common.util.concurrent; import static com.google.common.truth.Truth.assertThat; import static com.google.common.util.concurrent.Futures.immediateFuture; 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;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 6.3K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AsyncFunction.java
import java.util.concurrent.Future; import org.jspecify.annotations.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 public interface AsyncFunction<I extends @Nullable Object, O extends @Nullable Object> { /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 1.5K bytes - Viewed (0) -
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) -> {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 23 15:26:56 UTC 2025 - 98.1K bytes - Viewed (0) -
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)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 75.4K bytes - Viewed (0) -
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
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19.7K bytes - Viewed (0) -
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);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.8K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Futures.java
* Example usage: * * {@snippet : * ListenableFuture<RowKey> rowKeyFuture = indexService.lookUp(query); * ListenableFuture<QueryResult> queryFuture = * transformAsync(rowKeyFuture, dataService::readFuture, executor); * } * * <p>When selecting an executor, note that {@code directExecutor} is dangerous in some cases. See
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 64.3K bytes - Viewed (0)