- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 112 for Interrupter (0.14 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Stream.kt
} /** * Like [Object.wait], but throws an [InterruptedIOException] when interrupted instead of the more * awkward [InterruptedException]. */ @Throws(InterruptedIOException::class) internal fun waitForIo() { try { wait() } catch (_: InterruptedException) { Thread.currentThread().interrupt() // Retain interrupted status. throw InterruptedIOException() } } /**
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jul 07 18:57:05 GMT 2025 - 22.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
assertThat(Thread.interrupted()).isFalse(); SettableFuture<Integer> cancelledFuture = SettableFuture.create(); cancelledFuture.cancel(true); assertThat(Thread.interrupted()).isFalse(); ListenableFuture<Integer> future = submitAsync(() -> cancelledFuture, directExecutor()); assertThat(future.isDone()).isTrue(); assertThat(Thread.interrupted()).isFalse(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 134K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
assertThat(Thread.interrupted()).isFalse(); SettableFuture<Integer> cancelledFuture = SettableFuture.create(); cancelledFuture.cancel(true); assertThat(Thread.interrupted()).isFalse(); ListenableFuture<Integer> future = submitAsync(() -> cancelledFuture, directExecutor()); assertThat(future.isDone()).isTrue(); assertThat(Thread.interrupted()).isFalse(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 134K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackTest.java
// Wait for all threads to complete for (Thread thread : threads) { try { thread.join(); } catch (InterruptedException e) { fail("Thread interrupted"); } } // Verify all stores were counted assertEquals(1000L, callback.getDocumentSize()); // Test commit after concurrent operationsCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 12.5K bytes - Click Count (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
Thread.sleep(Long.MAX_VALUE); } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new CIFSException("Watch interrupted"); } return Collections.emptyList(); } @Override public List<FileNotifyInformation> call() throws CIFSException {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.2K bytes - Click Count (1) -
android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java
* * <p>Future that delegates to another but will finish early (via a {@link TimeoutException} wrapped * in an {@link ExecutionException}) if the specified duration expires. The delegate future is * interrupted and cancelled if it times out. */ @J2ktIncompatible @GwtIncompatible final class TimeoutFuture<V extends @Nullable Object> extends FluentFuture.TrustedFuture<V> {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 8K bytes - Click Count (0) -
src/main/java/jcifs/util/AuthenticationRateLimiter.java
try { cleanupScheduler.awaitTermination(5, TimeUnit.SECONDS); } catch (InterruptedException e) { Thread.currentThread().interrupt(); log.warn("Interrupted while shutting down cleanup scheduler", e); } log.info("Authentication rate limiter closed"); } /** * Per-account attempt tracking */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/SuggestJobTest.java
} } // Test executeSuggestCreator with interrupted exception @Test public void test_executeSuggestCreator_withInterruptedException() { createRequiredDirectories(); mockProcessHelper.setThrowException(new InterruptedException("Interrupted")); try { suggestJob.executeSuggestCreator();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 31.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/exec/SuggestCreator.java
}); try { latch.await(); } catch (final InterruptedException ignore) { if (logger.isDebugEnabled()) { logger.debug("Interrupted.", ignore); } exitCode.set(1); } } if (ComponentUtil.getFessConfig().isSuggestSearchLog()) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 02:24:08 GMT 2026 - 12.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/SystemUtilTest.java
try { thread.join(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); fail("Thread interrupted"); } } // Verify all results are consistent for (String result : results) { assertEquals("thread-test", result); }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 17.1K bytes - Click Count (0)