Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 120 for interrupted (0.11 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        final AtomicBoolean terminated = new AtomicBoolean();
        // we need to keep this in a flag because t.isInterrupted() returns false after t.join()
        final AtomicBoolean interrupted = new AtomicBoolean();
        // we need to use another thread because it will be interrupted and thus using
        // the current one, owned by JUnit, would make the test fail
        Thread thread =
            new Thread(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/TestPlatform.java

        } catch (ExecutionException e) {
          throw new AssertionError(e);
        }
      }
    
      static void verifyThreadWasNotInterrupted() {
        assertFalse(Thread.currentThread().isInterrupted());
      }
    
      static void clearInterrupt() {
        Thread.interrupted();
      }
    
      /**
       * Retrieves the result of a {@code Future} known to be done but uses the {@code get(long,
       * TimeUnit)} overload in order to test that method.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/TestPlatform.java

        } catch (ExecutionException e) {
          throw new AssertionError(e);
        }
      }
    
      static void verifyThreadWasNotInterrupted() {
        assertFalse(Thread.currentThread().isInterrupted());
      }
    
      static void clearInterrupt() {
        Thread.interrupted();
      }
    
      /**
       * Retrieves the result of a {@code Future} known to be done but uses the {@code get(long,
       * TimeUnit)} overload in order to test that method.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java

       * the source future indefinitely, so if the source future never completes, the adapter will never
       * complete either.
       *
       * <p>If the delegate future is interrupted or throws an unexpected unchecked exception, the
       * listeners will not be invoked.
       */
      private static class ListenableFutureAdapter<V extends @Nullable Object>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/ProcessHelper.java

            if (jobProcess != null) {
                final InputStreamThread ist = jobProcess.getInputStreamThread();
                try {
                    ist.interrupt();
                } catch (final Exception e) {
                    logger.warn("Could not interrupt a thread of an input stream.", e);
                }
    
                final CountDownLatch latch = new CountDownLatch(3);
                final Process process = jobProcess.getProcess();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          else {
            AssertionFailedError afe = new AssertionFailedError(t.toString());
            afe.initCause(t);
            throw afe;
          }
        }
    
        if (Thread.interrupted()) throw new AssertionFailedError("interrupt status set in main thread");
      }
    
      /**
       * Just like fail(reason), but additionally recording (using threadRecordFailure) any
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          else {
            AssertionFailedError afe = new AssertionFailedError(t.toString());
            afe.initCause(t);
            throw afe;
          }
        }
    
        if (Thread.interrupted()) throw new AssertionFailedError("interrupt status set in main thread");
      }
    
      /**
       * Just like fail(reason), but additionally recording (using threadRecordFailure) any
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/LoadingCache.java

       *     ExecutionException} is thrown <a
       *     href="https://github.com/google/guava/wiki/CachesExplained#interruption">even if
       *     computation was interrupted by an {@code InterruptedException}</a>.)
       * @throws UncheckedExecutionException if an unchecked exception was thrown while loading the
       *     value
       * @throws ExecutionError if an error was thrown while loading the value
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Aug 06 17:12:03 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  9. docs/changelogs/changelog_1x.md

    _2014-03-29_
    
     * Fix bug where the Content-Length header was not always dropped when
       following a redirect from a POST to a GET.
     * Implement basic support for `Thread.interrupt()`. OkHttp now checks
       for an interruption before doing a blocking call. If it is interrupted,
       it throws an `InterruptedIOException`.
    
    ## Version 1.5.2
    
    _2014-03-17_
    
     * Fix bug where deleting a file that was absent from the `HttpResponseCache`
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java

       * the source future indefinitely, so if the source future never completes, the adapter will never
       * complete either.
       *
       * <p>If the delegate future is interrupted or throws an unexpected unchecked exception, the
       * listeners will not be invoked.
       */
      private static class ListenableFutureAdapter<V extends @Nullable Object>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
Back to top