- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 240 for InterruptedException (1.22 sec)
-
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 4.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java
assertFalse(shutDownCalled); runCalled = true; assertEquals(State.RUNNING, state()); enterRun.countDown(); try { exitRun.await(); } catch (InterruptedException e) { throw new RuntimeException(e); } } @Override protected void shutDown() { assertTrue(startUpCalled); assertTrue(runCalled);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 12.9K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
* for space to become available if the queue is full. * * @throws InterruptedException {@inheritDoc} * @throws NullPointerException {@inheritDoc} */ @CanIgnoreReturnValue @Override public boolean offer(E e, long timeout, TimeUnit unit) throws InterruptedException { if (e == null) throw new NullPointerException(); Monitor monitor = this.monitor;Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 22.4K bytes - Viewed (0) -
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 Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Aug 30 11:30:11 UTC 2025 - 10.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java
*/ ExecutionException fromRunInterruptibly = assertThrows(ExecutionException.class, () -> taskResult.get(10, SECONDS)); assertThat(fromRunInterruptibly).hasCauseThat().isInstanceOf(InterruptedException.class); } static final class BrokenChannel extends AbstractInterruptibleChannel { @Override protected void implCloseChannel() {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java
@Test void testActivityTracking() { long initialTime = channelInfo.getLastActivityTime(); // Wait a bit and update activity try { Thread.sleep(10); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } channelInfo.updateActivity(); assertTrue(channelInfo.getLastActivityTime() > initialTime);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.4K bytes - Viewed (0) -
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 33.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java
assertTrue(leaseManager.getAllLeases().isEmpty()); } @Test @DisplayName("Should clean up expired leases") void testCleanupExpiredLeases() throws InterruptedException { String path = "/share/expired.txt"; int requestedState = Smb2LeaseState.SMB2_LEASE_READ_CACHING; Smb2LeaseKey key = leaseManager.requestLease(path, requestedState);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 13.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/gcs/GcsClientTest.java
@Override protected ResponseData getResponseData(final String uri, final boolean includeContent) { try { Thread.sleep(2000); } catch (InterruptedException e) { throw new CrawlingAccessException(e); } return null; } }; client.setAccessTimeout(1); try {Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 19.6K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/GcFinalizationTest.java
} }); assertTrue(map.isEmpty()); } // ---------------------------------------------------------------- // Test that interrupts result in RuntimeException, not InterruptedException. // Trickier than it looks, because runFinalization swallows interrupts. // ---------------------------------------------------------------- class Interruptenator extends Thread {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Dec 08 17:02:07 UTC 2025 - 7.9K bytes - Viewed (0)