- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 751 for futures (0.05 sec)
-
android/guava-tests/test/com/google/common/cache/CacheLoaderTest.java
import static com.google.common.util.concurrent.Futures.immediateFuture; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.util.concurrent.ListenableFuture; import java.util.ArrayDeque; import java.util.Deque; import java.util.Map; import java.util.concurrent.Executor; import java.util.concurrent.Future; import java.util.concurrent.atomic.AtomicInteger;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 3.6K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/UncheckedExecutionException.java
* * (Perhaps it should also have required that its cause was a RuntimeException. However, that * would have required that we throw a different kind of exception for wrapping *checked* * exceptions in methods like Futures.getUnchecked and LoadingCache.get.) */ /** * Creates a new instance with {@code null} as its detail message and no cause. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 4.2K bytes - Viewed (0) -
docs/smb3-features/02-persistent-handles-design.md
```java public class BatchHandleOperations { public void reconnectMultipleHandles(List<HandleInfo> handles) { List<CompletableFuture<Void>> futures = new ArrayList<>(); for (HandleInfo handle : handles) { futures.add(CompletableFuture.runAsync(() -> { try { reconnectHandle(handle); } catch (Exception e) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 31.6K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java
* Future} instances to be upgraded to {@code ListenableFuture} after the fact. */ public static <V extends @Nullable Object> ListenableFuture<V> listenInPoolThread( Future<V> future) { if (future instanceof ListenableFuture) { return (ListenableFuture<V>) future; } return new ListenableFutureAdapter<>(future); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 7.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java
*/ package com.google.common.util.concurrent; import static com.google.common.truth.Truth.assertThat; import static com.google.common.util.concurrent.Callables.returning; import static com.google.common.util.concurrent.Futures.getDone; import static com.google.common.util.concurrent.ReflectionFreeAssertThrows.assertThrows; import static com.google.common.util.concurrent.TestPlatform.verifyThreadWasNotInterrupted;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 7.2K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/ImmediateFuture.java
import java.util.concurrent.ExecutionException; import java.util.concurrent.Executor; import java.util.concurrent.TimeUnit; import java.util.logging.Level; import org.jspecify.annotations.Nullable; /** Implementation of {@link Futures#immediateFuture}. */ @GwtCompatible // TODO(cpovirk): Make this final (but that may break Mockito spy calls). class ImmediateFuture<V extends @Nullable Object> implements ListenableFuture<V> {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.4K bytes - Viewed (0) -
docs/smb3-features/03-multi-channel-design.md
} catch (Exception e) { throw new CompletionException(e); } }); futures.add(future); } // Wait for all reads to complete try { CompletableFuture.allOf(futures.toArray(new CompletableFuture[0])) .get(30, TimeUnit.SECONDS); } catch (Exception e) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 39.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
} void assertThatFutureFailsWithException(Future<?> future) { try { getUninterruptibly(future); fail("Expected future to fail: " + future); } catch (ExecutionException e) { assertThat(e).hasCauseThat().isSameInstanceAs(exception); } } static void assertThatFutureBecomesCancelled(Future<?> future) throws ExecutionException { try {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 75.4K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java
import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import org.jspecify.annotations.Nullable; /** * Implementation of {@code Futures#withTimeout}. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 8K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java
if (future.listenersField == expect) { future.listenersField = update; return true; } return false; } } @Override @Nullable Listener gasListeners(AbstractFutureState<?> future, Listener update) { synchronized (future) { Listener old = future.listenersField; if (old != update) { future.listenersField = update;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 33.2K bytes - Viewed (0)