Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 77 for TimeoutException (0.19 sec)

  1. android/guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

    import java.util.concurrent.Callable;
    import java.util.concurrent.Delayed;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.Future;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    
    /**
     * A ScheduledExecutorService that executes all scheduled actions immediately in the calling thread.
     *
     * <p>See {@link TestingExecutors#sameThreadScheduledExecutor()} for a full list of constraints.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 6.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

    import com.google.common.util.concurrent.AbstractFutureTest.TimedWaiterThread;
    import java.util.concurrent.CancellationException;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.TimeoutException;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Base class for tests for emulated {@link AbstractFuture} that allow subclasses to swap in a
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

    import java.util.concurrent.Callable;
    import java.util.concurrent.Delayed;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.Future;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    
    /**
     * A ScheduledExecutorService that executes all scheduled actions immediately in the calling thread.
     *
     * <p>See {@link TestingExecutors#sameThreadScheduledExecutor()} for a full list of constraints.
     *
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 6.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/TestPlatform.java

          fail();
        } catch (TimeoutException expected) {
        } catch (ExecutionException e) {
          throw failureWithCause(e, "");
        }
      }
    
      static void verifyTimedGetOnPendingFuture(Future<?> future) {
        try {
          getUninterruptibly(future, 0, SECONDS);
          fail();
        } catch (TimeoutException expected) {
        } catch (ExecutionException e) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/UncheckedThrowingFuture.java

    import com.google.common.annotations.GwtCompatible;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.Future;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    
    /**
     * A {@link Future} implementation which always throws directly from calls to {@code get()} (i.e.
     * not wrapped in {@code ExecutionException}. For just a normal failure, use {@link
     * SettableFuture}).
     *
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 12 20:02:10 GMT 2018
    - 3.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Implementation of {@code Futures#withTimeout}.
     *
     * <p>Future that delegates to another but will finish early (via a {@link TimeoutException} wrapped
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

        SettableFuture<String> future = SettableFuture.create();
        FutureTask<Boolean> interruptReporter = untimedInterruptReporter(future, false);
    
        runNInterruptsTest(times, future, interruptReporter);
      }
    
      private static void runTimedInterruptsTest(int times)
          throws InterruptedException, ExecutionException, TimeoutException {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

    import com.google.common.util.concurrent.ForwardingListenableFuture.SimpleForwardingListenableFuture;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.ScheduledExecutorService;
    import java.util.concurrent.TimeoutException;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link FluentFuture}. The tests cover only the basics for the API. The actual logic is
     * tested in {@link FuturesTest}.
     */
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Future;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    import junit.framework.TestCase;
    
    /**
     * Test for {@link WrappingExecutorService}
     *
     * @author Chris Nokleberg
     */
    public class WrappingExecutorServiceTest extends TestCase {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Jan 05 19:41:03 GMT 2023
    - 9.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AbstractIdleService.java

      public final void awaitRunning(long timeout, TimeUnit unit) throws TimeoutException {
        delegate.awaitRunning(timeout, unit);
      }
    
      /** @since 15.0 */
      @Override
      public final void awaitTerminated() {
        delegate.awaitTerminated();
      }
    
      /** @since 15.0 */
      @Override
      public final void awaitTerminated(long timeout, TimeUnit unit) throws TimeoutException {
        delegate.awaitTerminated(timeout, unit);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 13:59:28 GMT 2023
    - 5.3K bytes
    - Viewed (0)
Back to top