Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 153 for InterruptedException (0.13 sec)

  1. guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java

          throws TimeoutException, InterruptedException, ExecutionException {
        checkNotNull(callable);
        checkNotNull(timeoutUnit);
        checkPositiveTimeout(timeoutDuration);
    
        Future<T> future = executor.submit(callable);
    
        try {
          return future.get(timeoutDuration, timeoutUnit);
        } catch (InterruptedException | TimeoutException e) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

      }
    
      @ParametricNullness
      @SuppressWarnings("nullness") // TODO(b/147136275): Remove once our checker understands & and |.
      final V blockingGet() throws InterruptedException, ExecutionException {
        if (Thread.interrupted()) {
          throw new InterruptedException();
        }
        @RetainedLocalRef Object localValue = valueField;
        if (localValue != null & notInstanceOfDelegatingToFuture(localValue)) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/ForwardingFluentFuture.java

        return delegate.isDone();
      }
    
      @Override
      @ParametricNullness
      public V get() throws InterruptedException, ExecutionException {
        return delegate.get();
      }
    
      @Override
      @ParametricNullness
      public V get(long timeout, TimeUnit unit)
          throws InterruptedException, ExecutionException, TimeoutException {
        return delegate.get(timeout, unit);
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

            } catch (thrown: Throwable) {
              // A task failed. Update execution state and re-throw the exception.
              withLock {
                afterRun(task, -1L, false)
              }
              if (thrown is InterruptedException) {
                Thread.currentThread().interrupt()
              } else {
                throw thrown
              }
            } finally {
              currentThread.name = oldName
            }
          }
        }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/AbstractFutureState.java

      }
    
      @ParametricNullness
      @SuppressWarnings("nullness") // TODO(b/147136275): Remove once our checker understands & and |.
      final V blockingGet() throws InterruptedException, ExecutionException {
        if (Thread.interrupted()) {
          throw new InterruptedException();
        }
        @RetainedLocalRef Object localValue = valueField;
        if (localValue != null & notInstanceOfDelegatingToFuture(localValue)) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java

      }
    
      public void testExecute_idempotentConcurrently() throws InterruptedException {
        CountDownLatch okayToRun = new CountDownLatch(1);
        AtomicInteger runCalled = new AtomicInteger();
        list.add(
            new Runnable() {
              @Override
              public void run() {
                try {
                  okayToRun.await();
                } catch (InterruptedException e) {
                  Thread.currentThread().interrupt();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTester.java

          throws InterruptedException, ExecutionException {
        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
    
        assertTrue(latch.await(5, SECONDS));
        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
    
        assertEquals(expectedValue, future.get());
      }
    
      public void testCancelledFuture() throws InterruptedException, ExecutionException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  8. guava-gwt/test-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/TestPlatform.java

          throws ExecutionException {
        checkState(future.isDone(), "Future was expected to be done: %s", future);
        try {
          return future.get(0, SECONDS);
        } catch (InterruptedException e) {
          throw new AssertionError();
        } catch (TimeoutException e) {
          throw new AssertionError();
        }
      }
    
      private TestPlatform() {}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/AbstractConfigHelperTest.java

            configHelper.setReloadInterval(-1L);
            assertEquals(-1L, configHelper.reloadInterval);
        }
    
        public void test_waitForNext_withPositiveInterval() throws InterruptedException {
            configHelper.setReloadInterval(20L);
    
            long startTime = System.currentTimeMillis();
            configHelper.waitForNext();
            long endTime = System.currentTimeMillis();
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 00:03:47 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java

      }
    
      public void testExecute_idempotentConcurrently() throws InterruptedException {
        CountDownLatch okayToRun = new CountDownLatch(1);
        AtomicInteger runCalled = new AtomicInteger();
        list.add(
            new Runnable() {
              @Override
              public void run() {
                try {
                  okayToRun.await();
                } catch (InterruptedException e) {
                  Thread.currentThread().interrupt();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 4.7K bytes
    - Viewed (0)
Back to top