- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for AsyncFunction (0.06 seconds)
-
android/guava/src/com/google/common/util/concurrent/AsyncFunction.java
/** * 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> { /** * Returns an output {@code Future} to use in place of the given {@code input}. The output {@codeCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.5K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/AbstractCatchingFuture.java
AsyncFunction<? super X, ? extends V> fallback) { super(input, exceptionType, fallback); } @Override ListenableFuture<? extends V> doFallback( AsyncFunction<? super X, ? extends V> fallback, X cause) throws Exception { ListenableFuture<? extends V> output = fallback.apply(cause); checkNotNull( output,Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Sep 11 18:28:58 GMT 2025 - 9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java
import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutionException; import org.jspecify.annotations.NullUnmarked; /** * Unit tests for {@link Futures#transformAsync(ListenableFuture, AsyncFunction, Executor)}. * * @author Nishant Thakkar */ @NullUnmarked @GwtIncompatible @J2ktIncompatible public class FuturesTransformAsyncTest extends AbstractChainedListenableFutureTest<String> {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 6.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java
import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutionException; import org.jspecify.annotations.NullUnmarked; /** * Unit tests for {@link Futures#transformAsync(ListenableFuture, AsyncFunction, Executor)}. * * @author Nishant Thakkar */ @NullUnmarked @GwtIncompatible @J2ktIncompatible public class FuturesTransformAsyncTest extends AbstractChainedListenableFutureTest<String> {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 6.5K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/GwtFluentFutureCatchingSpecialization.java
Executor executor) { return (FluentFuture<V>) Futures.catching(this, exceptionType, fallback, executor); } public final FluentFuture<V> catchingAsync( Class<Throwable> exceptionType, AsyncFunction<? super Throwable, ? extends V> fallback, Executor executor) { return (FluentFuture<V>) Futures.catchingAsync(this, exceptionType, fallback, executor); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.9K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/GwtFuturesCatchingSpecialization.java
} public static <V extends @Nullable Object> ListenableFuture<V> catchingAsync( ListenableFuture<? extends V> input, Class<Throwable> exceptionType, AsyncFunction<? super Throwable, ? extends V> fallback, Executor executor) { return AbstractCatchingFuture.createAsync(input, exceptionType, fallback, executor); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 2K bytes - Click Count (0)