Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValueAndCloser (0.05 sec)

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

     *     .transform((closer, result) -> result.get("userName"), directExecutor())
     *     .catching(DBException.class, e -> "no user", directExecutor())
     *     .finishToValueAndCloser(
     *         valueAndCloser -> this.userNameValueAndCloser = valueAndCloser, executor);
     *
     * // later
     * try { // get() will throw if the operation failed or was cancelled.
     *   UserName userName = userNameValueAndCloser.get();
     *   // do something with userName
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 97.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/ClosingFuture.java

      @FunctionalInterface
      public interface ValueAndCloserConsumer<V extends @Nullable Object> {
    
        /** Accepts a {@link ValueAndCloser} for the last step in a {@link ClosingFuture} pipeline. */
        void accept(ValueAndCloser<V> valueAndCloser);
      }
    
      /**
       * Starts a {@link ClosingFuture} pipeline by submitting a callable block to an executor.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 98.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        }
      }
    
      static final class NoOpValueAndCloserConsumer<V> implements ValueAndCloserConsumer<V> {
        @Override
        public void accept(ValueAndCloser<V> valueAndCloser) {}
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 75.4K bytes
    - Viewed (0)
Back to top