Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CountDownLatch (0.09 sec)

  1. compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/ConsoleMavenTransferListenerTest.java

    class ConsoleMavenTransferListenerTest {
    
        private CountDownLatch startLatch;
        private CountDownLatch endLatch;
    
        @Test
        void testTransferProgressedWithPrintResourceNames() throws Exception {
            int size = 1000;
            ExecutorService service = Executors.newFixedThreadPool(size * 2);
            startLatch = new CountDownLatch(size);
            endLatch = new CountDownLatch(size);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/SimplexTransferListener.java

                // nothing, is async
            }
        }
    
        private static class BlockingExchange extends Exchange {
            private final CountDownLatch latch = new CountDownLatch(1);
    
            private BlockingExchange(TransferEvent event) {
                super(event);
            }
    
            @Override
            public void process(Consumer<TransferEvent> consumer) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

     */
    package okhttp3.dnsoverhttps
    
    import java.io.IOException
    import java.net.HttpURLConnection
    import java.net.InetAddress
    import java.net.UnknownHostException
    import java.util.concurrent.CountDownLatch
    import okhttp3.CacheControl
    import okhttp3.Call
    import okhttp3.Callback
    import okhttp3.Dns
    import okhttp3.HttpUrl
    import okhttp3.MediaType
    import okhttp3.MediaType.Companion.toMediaType
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Oct 31 09:27:31 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

            }
    
            if (result.getArtifactResolutionNodes() != null) {
                ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
    
                CountDownLatch latch =
                        new CountDownLatch(result.getArtifactResolutionNodes().size());
    
                for (ResolutionNode node : result.getArtifactResolutionNodes()) {
                    Artifact artifact = node.getArtifact();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 24.8K bytes
    - Viewed (0)
Back to top