- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ValueAndCloser (0.15 sec)
-
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) -
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)