Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for AsyncFunction (0.1 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

              throw new RejectedExecutionException();
            }
          };
    
      private static <V> AsyncFunction<V, V> asyncIdentity() {
        return Futures::immediateFuture;
      }
    
      private static <I, O> AsyncFunction<I, O> tagged(String toString, AsyncFunction<I, O> function) {
        return new AsyncFunction<I, O>() {
          @Override
          public ListenableFuture<O> apply(I input) throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

              throw new RejectedExecutionException();
            }
          };
    
      private static <V> AsyncFunction<V, V> asyncIdentity() {
        return Futures::immediateFuture;
      }
    
      private static <I, O> AsyncFunction<I, O> tagged(String toString, AsyncFunction<I, O> function) {
        return new AsyncFunction<I, O>() {
          @Override
          public ListenableFuture<O> apply(I input) throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  3. 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)
  4. 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)
  5. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

          Class<X> exceptionType, 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 state.closeables.applyAsyncClosingFunction(fallback, exception);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 101.7K bytes
    - Click Count (0)
  6. 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},
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 19.8K bytes
    - Click Count (0)
  7. 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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 64.2K bytes
    - Click Count (0)
Back to Top