Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 720 for futures (0.09 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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
    - 34.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

        /**
         * Contains the most recently submitted {@code Future}, which may be cancelled or updated,
         * always under a lock.
         */
        private static final class SupplantableFuture implements Cancellable {
          private final ReentrantLock lock;
    
          @GuardedBy("lock")
          private Future<@Nullable Void> currentFuture;
    
          SupplantableFuture(ReentrantLock lock, Future<@Nullable Void> currentFuture) {
            this.lock = lock;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

    import static com.google.common.cache.TestingRemovalListeners.countingRemovalListener;
    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.util.concurrent.Futures.immediateFailedFuture;
    import static com.google.common.util.concurrent.Futures.immediateFuture;
    import static java.util.Arrays.asList;
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static java.util.concurrent.TimeUnit.SECONDS;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 85.7K bytes
    - Viewed (0)
Back to top