Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newScheduledThreadPool (1.7 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

    import static com.google.common.util.concurrent.Uninterruptibles.tryLockUninterruptibly;
    import static java.util.concurrent.Executors.newFixedThreadPool;
    import static java.util.concurrent.Executors.newScheduledThreadPool;
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static java.util.concurrent.TimeUnit.SECONDS;
    
    import com.google.common.base.Preconditions;
    import com.google.common.base.Stopwatch;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  2. docs/recipes.md

    === ":material-language-kotlin: Kotlin"
        ```kotlin
          private val executor = Executors.newScheduledThreadPool(1)
          private val client = OkHttpClient()
    
          fun run() {
            val request = Request.Builder()
                .url("http://httpbin.org/delay/2") // This URL is served with a 2 second delay.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt

      private var client =
        clientTestRule
          .newClientBuilder()
          .eventListenerFactory(clientTestRule.wrap(listener))
          .build()
      private val executorService = Executors.newScheduledThreadPool(1)
    
      @BeforeEach
      fun setUp() {
        platform.assumeNotOpenJSSE()
        platform.assumeHttp2Support()
      }
    
      @AfterEach
      fun tearDown() {
        executorService.shutdown()
      }
    
      @Test
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 24.8K bytes
    - Viewed (0)
Back to top