- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 40 for shutdownNow (0.07 sec)
-
android/guava/src/com/google/common/util/concurrent/DirectExecutorService.java
if (runningTasks == 0) { lock.notifyAll(); } } } // See newDirectExecutorService javadoc for unusual behavior of this method. @Override public List<Runnable> shutdownNow() { shutdown(); return ImmutableList.of(); } @Override public boolean isTerminated() { synchronized (lock) { return shutdown && runningTasks == 0; } } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Apr 12 15:07:59 UTC 2025 - 3.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportPoolImpl.java
healthCheckExecutor.shutdown(); try { if (!healthCheckExecutor.awaitTermination(5, TimeUnit.SECONDS)) { healthCheckExecutor.shutdownNow(); } } catch (InterruptedException e) { healthCheckExecutor.shutdownNow(); Thread.currentThread().interrupt(); } // Close all connections without synchronization - concurrent collections are thread-safe
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 33.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/TestTls13Request.kt
private fun testClient( urls: List<String>, client: OkHttpClient, ) { try { for (url in urls) { sendRequest(client, url) } } finally { client.dispatcher.executorService.shutdownNow() client.connectionPool.evictAll() } } private fun buildClient(vararg specs: ConnectionSpec): OkHttpClient = OkHttpClient .Builder() .connectionSpecs(listOf(*specs)) .build()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu May 22 14:39:30 UTC 2025 - 3.6K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt
} /** Returns true if no tasks have been scheduled. This runs the coordinator for confirmation. */ fun isIdle() = taskRunner.activeQueues().isEmpty() override fun close() { tasksExecutor.shutdownNow() } companion object { var instance = 0 }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed May 28 23:28:25 UTC 2025 - 11.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt
response: Response, ) { } }, ) // This should fail the Call, but not cause an unhandled Exception bubbling up client.dispatcher.executorService.shutdownNow() val exception = callFailure.get(5, TimeUnit.SECONDS) assertThat(exception.message).isEqualTo("canceled due to java.lang.InterruptedException") assertThat(exception).isInstanceOf<IOException>()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 11:30:11 UTC 2025 - 6.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Aug 06 05:33:11 UTC 2025 - 6.1K bytes - Viewed (0) -
src/main/java/jcifs/util/AuthenticationRateLimiter.java
log.info("Rate limiter state reset"); } @Override public void close() { if (!closed.compareAndSet(false, true)) { return; } cleanupScheduler.shutdownNow(); try { cleanupScheduler.awaitTermination(5, TimeUnit.SECONDS); } catch (InterruptedException e) { Thread.currentThread().interrupt();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/MultiChannelManager.java
try { if (!healthCheckExecutor.awaitTermination(5, TimeUnit.SECONDS)) { healthCheckExecutor.shutdownNow(); } if (!channelExecutor.awaitTermination(5, TimeUnit.SECONDS)) { channelExecutor.shutdownNow(); } } catch (InterruptedException e) { Thread.currentThread().interrupt(); } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 20.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/exec/ThumbnailGenerator.java
} catch (final InterruptedException e) { if (logger.isDebugEnabled()) { logger.debug("Interrupted.", e); } } finally { executorService.shutdownNow(); } return totalCount; }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 9.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java
throw new UnsupportedOperationException(); } @Override public void shutdown() { throw new UnsupportedOperationException(); } @Override public List<Runnable> shutdownNow() { throw new UnsupportedOperationException(); } @Override public <T> Future<T> submit(Callable<T> task) { throw new UnsupportedOperationException(); } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 7.4K bytes - Viewed (0)