- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for AsyncFunction (0.24 sec)
-
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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 01 21:46:34 UTC 2024 - 8.7K bytes - Viewed (0) -
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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 01 21:46:34 UTC 2024 - 10.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
} }; private static <V> AsyncFunction<V, V> asyncIdentity() { return new AsyncFunction<V, V>() { @Override public ListenableFuture<V> apply(V input) { return immediateFuture(input); } }; } private static <I, O> AsyncFunction<I, O> tagged( final String toString, final AsyncFunction<I, O> function) { return new AsyncFunction<I, O>() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 29 16:29:37 UTC 2024 - 144.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
} }; private static <V> AsyncFunction<V, V> asyncIdentity() { return new AsyncFunction<V, V>() { @Override public ListenableFuture<V> apply(V input) { return immediateFuture(input); } }; } private static <I, O> AsyncFunction<I, O> tagged( final String toString, final AsyncFunction<I, O> function) { return new AsyncFunction<I, O>() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 29 16:29:37 UTC 2024 - 144.1K 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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 01 21:46:34 UTC 2024 - 8.7K bytes - Viewed (0) -
android/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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 01 21:46:34 UTC 2024 - 10.6K bytes - Viewed (0) -
android/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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 13 14:28:25 UTC 2024 - 5.7K bytes - Viewed (0) -
android/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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Apr 11 19:08:44 UTC 2023 - 18.7K 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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Apr 11 19:08:44 UTC 2023 - 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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 6.1K bytes - Viewed (0)