Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for AsyncCallable (0.06 sec)

  1. android/guava/src/com/google/common/util/concurrent/Callables.java

        return () -> value;
      }
    
      /**
       * Creates an {@link AsyncCallable} from a {@link Callable}.
       *
       * <p>The {@link AsyncCallable} returns the {@link ListenableFuture} resulting from {@link
       * ListeningExecutorService#submit(Callable)}.
       *
       * @since 20.0
       */
      @J2ktIncompatible
      @GwtIncompatible
      public static <T extends @Nullable Object> AsyncCallable<T> asAsyncCallable(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

              @Override
              public String call() throws Exception {
                return expected;
              }
            };
    
        AsyncCallable<String> asyncCallable =
            Callables.asAsyncCallable(callable, newDirectExecutorService());
    
        ListenableFuture<String> future = asyncCallable.call();
        assertSame(expected, future.get());
      }
    
      @J2ktIncompatible
      @GwtIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/Callables.java

        return () -> value;
      }
    
      /**
       * Creates an {@link AsyncCallable} from a {@link Callable}.
       *
       * <p>The {@link AsyncCallable} returns the {@link ListenableFuture} resulting from {@link
       * ListeningExecutorService#submit(Callable)}.
       *
       * @since 20.0
       */
      @J2ktIncompatible
      @GwtIncompatible
      public static <T extends @Nullable Object> AsyncCallable<T> asAsyncCallable(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 4.4K bytes
    - Viewed (0)
Back to top