- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for AsyncFunction (0.13 sec)
-
guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java
super(inputFuture, function); } @Override ListenableFuture<? extends O> doTransform( AsyncFunction<? super I, ? extends O> function, @ParametricNullness I input) throws Exception { ListenableFuture<? extends O> outputFuture = function.apply(input); checkNotNull( outputFuture,
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 13:13:32 UTC 2024 - 11K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractCatchingFuture.java
} /** * An {@link AbstractCatchingFuture} that delegates to an {@link AsyncFunction} and {@link * #setFuture(ListenableFuture)}. */ private static final class AsyncCatchingFuture<V extends @Nullable Object, X extends Throwable> extends AbstractCatchingFuture< V, X, AsyncFunction<? super X, ? extends V>, ListenableFuture<? extends V>> { AsyncCatchingFuture(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 13:13:32 UTC 2024 - 9.1K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ClosingFuture.java
Class<X> exceptionType, final AsyncClosingFunction<? super X, W> fallback, Executor executor) { checkNotNull(fallback); AsyncFunction<X, W> asyncFunction = new AsyncFunction<X, W>() { @Override public ListenableFuture<W> apply(X exception) throws Exception { return closeables.applyAsyncClosingFunction(fallback, exception); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 08 19:36:35 UTC 2024 - 98.5K bytes - Viewed (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); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Dec 08 20:30:27 UTC 2022 - 1.9K bytes - Viewed (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); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jun 24 17:45:05 UTC 2024 - 2K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/FluentFuture.java
/** * Returns a {@code Future} whose result is taken from this {@code Future} or, if this {@code * Future} fails with the given {@code exceptionType}, from the result provided by the {@code * fallback}. {@link AsyncFunction#apply} is not invoked until the primary input has failed, so if * the primary input succeeds, it is never invoked. If, during the invocation of {@code fallback},
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:51:36 UTC 2024 - 19.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java
import java.util.concurrent.CancellationException; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutionException; /** * Unit tests for {@link Futures#transformAsync(ListenableFuture, AsyncFunction, Executor)}. * * @author Nishant Thakkar */ public class FuturesTransformAsyncTest extends AbstractChainedListenableFutureTest<String> { protected static final int SLOW_OUTPUT_VALID_INPUT_DATA = 2;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 6.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java
FluentFuture<?> f = FluentFuture.from(immediateFailedFuture(new CustomRuntimeException())) .catchingAsync( Throwable.class, new AsyncFunction<Throwable, Class<?>>() { @Override public ListenableFuture<Class<?>> apply(Throwable input) { return Futures.<Class<?>>immediateFuture(input.getClass());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 13 14:28:25 UTC 2024 - 5.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java
import java.util.concurrent.CancellationException; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutionException; /** * Unit tests for {@link Futures#transformAsync(ListenableFuture, AsyncFunction, Executor)}. * * @author Nishant Thakkar */ public class FuturesTransformAsyncTest extends AbstractChainedListenableFutureTest<String> { protected static final int SLOW_OUTPUT_VALID_INPUT_DATA = 2;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 6.2K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Futures.java
* Returns a {@code Future} whose result is taken from the given primary {@code input} or, if the * primary input fails with the given {@code exceptionType}, from the result provided by the * {@code fallback}. {@link AsyncFunction#apply} is not invoked until the primary input has * failed, so if the primary input succeeds, it is never invoked. If, during the invocation of
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 13:13:32 UTC 2024 - 64.7K bytes - Viewed (0)