Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for gwon (0.12 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

      private var contextSwitchCount = 0
    
      /** Guarded by [TaskRunner.lock]. */
      private var activeThreads = 0
    
      /** A task runner that posts tasks to this fake. Tasks won't be executed until requested. */
      val taskRunner: TaskRunner =
        TaskRunner(
          object : TaskRunner.Backend {
            override fun execute(
              taskRunner: TaskRunner,
              runnable: Runnable,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

        val expireLater = taskFaker.nanoTime + 2_000_000_000_000
    
        routePlanner.autoGeneratePlans = true
        val address = routePlanner.address
        val pool = routePlanner.pool
    
        // Add a connection to the pool that won't expire for a while
        routePlanner.defaultConnectionIdleAtNanos = expireLater
        setPolicy(pool, address, ConnectionPool.AddressPolicy(1))
        assertThat(pool.connectionCount()).isEqualTo(1)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 12.7K bytes
    - Viewed (0)
Back to top