Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for AsyncFunction (0.2 sec)

  1. 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(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  2. 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());
    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)
  3. 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;
    Java
    - Registered: Fri May 03 12:43:13 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/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());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  5. 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;
    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)
  6. 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.create(input, exceptionType, fallback, executor);
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 08 20:30:27 GMT 2022
    - 2K bytes
    - Viewed (0)
  7. 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);
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 08 20:30:27 GMT 2022
    - 1.9K bytes
    - Viewed (0)
Back to top