Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for UncheckedTimeoutException (0.37 seconds)

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

     */
    @J2ktIncompatible
    @GwtIncompatible
    public class UncheckedTimeoutException extends RuntimeException {
      public UncheckedTimeoutException() {}
    
      public UncheckedTimeoutException(@Nullable String message) {
        super(message);
      }
    
      public UncheckedTimeoutException(@Nullable Throwable cause) {
        super(cause);
      }
    
      public UncheckedTimeoutException(@Nullable String message, @Nullable Throwable cause) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java

        SampleImpl target = new SampleImpl(9999);
        Sample proxy = service.newProxy(target, Sample.class, NOT_ENOUGH_MS, MILLISECONDS);
        Stopwatch stopwatch = Stopwatch.createStarted();
    
        assertThrows(UncheckedTimeoutException.class, () -> proxy.sleepThenReturnInput("x"));
    
        assertThat(stopwatch.elapsed(MILLISECONDS)).isIn(Range.closed(NOT_ENOUGH_MS, DELAY_MS * 2));
        // Is it still computing away anyway?
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/util/concurrent/TimeLimiter.java

       * exception is propagated to the caller exactly as-is. If, on the other hand, the time limit is
       * reached, the proxy will attempt to abort the call to the target, and will throw an {@link
       * UncheckedTimeoutException} to the caller.
       *
       * <p>It is important to note that the primary purpose of the proxy object is to return control to
       * the caller when the timeout elapses; aborting the target method call is of secondary concern.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 18 02:54:30 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java

        SampleImpl target = new SampleImpl(9999);
        Sample proxy = service.newProxy(target, Sample.class, NOT_ENOUGH_MS, MILLISECONDS);
        Stopwatch stopwatch = Stopwatch.createStarted();
    
        assertThrows(UncheckedTimeoutException.class, () -> proxy.sleepThenReturnInput("x"));
    
        assertThat(stopwatch.elapsed(MILLISECONDS)).isIn(Range.closed(NOT_ENOUGH_MS, DELAY_MS * 2));
        // Is it still computing away anyway?
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java

          throw e;
        } catch (ExecutionException e) {
          throw throwCause(e, true /* combineStackTraces */);
        } catch (TimeoutException e) {
          future.cancel(true);
          throw new UncheckedTimeoutException(e);
        }
      }
    
      @CanIgnoreReturnValue
      @Override
      @ParametricNullness
      public <T extends @Nullable Object> T callWithTimeout(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 08 18:35:13 GMT 2025
    - 9.6K bytes
    - Click Count (0)
Back to Top