Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 101 - 110 of 375 for executors (0.15 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/recipes.md

    === ":material-language-kotlin: Kotlin"
        ```kotlin
          private val executor = Executors.newScheduledThreadPool(1)
          private val client = OkHttpClient()
    
          fun run() {
            val request = Request.Builder()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 47.8K bytes
    - Click Count (0)
  2. guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

    import static com.google.common.collect.CollectPreconditions.checkNonnegative;
    import static com.google.common.collect.Lists.newArrayListWithExpectedSize;
    import static java.util.concurrent.Executors.newFixedThreadPool;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.common.annotations.VisibleForTesting;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

    import java.security.cert.Certificate
    import java.security.cert.X509Certificate
    import java.time.Duration
    import java.time.Instant
    import java.util.Date
    import java.util.concurrent.ExecutorService
    import java.util.concurrent.Executors
    import java.util.concurrent.TimeUnit
    import javax.net.ServerSocketFactory
    import javax.net.SocketFactory
    import javax.net.ssl.HostnameVerifier
    import javax.net.ssl.SSLContext
    import javax.net.ssl.SSLSocket
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 49.7K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/io/MoreFilesTest.java

            Path changingFile = dirToDelete.resolve("j/l");
            Path symlinkTarget = fs.getPath("/dontdelete");
    
            ExecutorService executor = newSingleThreadExecutor();
            Future<?> switcher = startDirectorySymlinkSwitching(changingFile, symlinkTarget, executor);
    
            try {
              for (int i = 0; i < iterations; i++) {
                try {
                  Files.createDirectories(changingFile);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 27.5K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/io/MoreFilesTest.java

            Path changingFile = dirToDelete.resolve("j/l");
            Path symlinkTarget = fs.getPath("/dontdelete");
    
            ExecutorService executor = newSingleThreadExecutor();
            Future<?> switcher = startDirectorySymlinkSwitching(changingFile, symlinkTarget, executor);
    
            try {
              for (int i = 0; i < iterations; i++) {
                try {
                  Files.createDirectories(changingFile);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 26.6K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        ClosingFuture<String> closingFuture =
            ClosingFuture.from(executor.submit(Callables.returning(closeable1)))
                .transform(
                    (DeferredCloser closer, TestCloseable v) -> {
                      assertThat(v).isSameInstanceAs(closeable1);
                      return "value";
                    },
                    executor);
        assertThat(getFinalValue(closingFuture)).isEqualTo("value");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 63K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        ClosingFuture<String> closingFuture =
            ClosingFuture.from(executor.submit(Callables.returning(closeable1)))
                .transform(
                    (DeferredCloser closer, TestCloseable v) -> {
                      assertThat(v).isSameInstanceAs(closeable1);
                      return "value";
                    },
                    executor);
        assertThat(getFinalValue(closingFuture)).isEqualTo("value");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 63K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            };
        ExecutorService executor = newSingleThreadExecutor();
        // Pause the executor.
        CountDownLatch beforeFunction = new CountDownLatch(1);
        executor.execute(() -> awaitUninterruptibly(beforeFunction));
        ListenableFuture<Integer> future = submitAsync(callable, executor);
        future.cancel(false);
    
        // Unpause the executor.
        beforeFunction.countDown();
        executor.shutdown();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            };
        ExecutorService executor = newSingleThreadExecutor();
        // Pause the executor.
        CountDownLatch beforeFunction = new CountDownLatch(1);
        executor.execute(() -> awaitUninterruptibly(beforeFunction));
        ListenableFuture<Integer> future = submitAsync(callable, executor);
        future.cancel(false);
    
        // Unpause the executor.
        beforeFunction.countDown();
        executor.shutdown();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  10. docs/smb3-features/06-witness-protocol-design.md

            this.port = DEFAULT_WITNESS_PORT;
            this.context = context;
            this.registrations = new ConcurrentHashMap<>();
            this.listeners = new ConcurrentHashMap<>();
            this.scheduler = Executors.newScheduledThreadPool(2);
            this.rpcClient = new WitnessRpcClient(witnessServer, context);
            
            // Schedule periodic tasks
            schedulePeriodicTasks();
        }
        
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 42K bytes
    - Click Count (0)
Back to Top