Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for run (0.14 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

          ioException.initCause(e)
          noMoreExchanges(ioException)
          responseCallback.onFailure(this@RealCall, ioException)
        }
    
        override fun run() {
          threadName("OkHttp ${redactedUrl()}") {
            var signalledCallback = false
            timeout.enter()
            try {
              val response = getResponseWithInterceptorChain()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  2. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

      private var nextQueueName = 10000
      private var coordinatorWaiting = false
      private var coordinatorWakeUpAt = 0L
    
      /**
       * When we need a new thread to run tasks, we call [Backend.execute]. A few microseconds later we
       * expect a newly-started thread to call [Runnable.run]. We shouldn't request new threads until
       * the already-requested ones are in service, otherwise we might create more threads than we need.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

       * True if this task faker has ever had multiple tasks scheduled to run concurrently. Guarded by
       * [TaskRunner.lock].
       */
      var isParallel = false
    
      /** Number of calls to [TaskRunner.Backend.execute]. Guarded by [TaskRunner.lock]. */
      var executeCallCount = 0
    
      /** Guarded by [taskRunner]. */
      var nanoTime = 0L
        private set
    
      /** Backlog of tasks to run. Only one task runs at a time. Guarded by [TaskRunner.lock]. */
    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)
  4. okhttp/src/main/kotlin/okhttp3/Dispatcher.kt

    import okhttp3.internal.okHttpName
    import okhttp3.internal.threadFactory
    
    /**
     * Policy on when async requests are executed.
     *
     * Each dispatcher uses an [ExecutorService] to run calls internally. If you supply your own
     * executor, it should be able to run [the configured maximum][maxRequests] number of calls
     * concurrently.
     */
    class Dispatcher() {
      internal val lock: ReentrantLock = ReentrantLock()
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 9K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

       * If there are already enough connections, we're done.
       * If not, we create one and then schedule the task to run again immediately.
       */
      private fun openConnections(state: AddressState): Long {
        // This policy does not require minimum connections, don't run again
        if (state.policy.minimumConcurrentCalls == 0) return -1L
    
        var concurrentCallCapacity = 0
        for (connection in connections) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

      // This ensures that we never wait for a blocking operation while holding 'this'.
    
      /** True if this peer initiated the connection. */
      internal val client: Boolean = builder.client
    
      /** User code to run in response to incoming streams or settings. */
      internal val listener: Listener = builder.listener
      internal val streams = mutableMapOf<Int, Http2Stream>()
      internal val connectionName: String = builder.connectionName
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerTest.kt

        assertThat(log).containsExactly("run@100000")
    
        taskFaker.advanceUntil(150.µs)
        assertThat(log).containsExactly("run@100000", "run@150000")
    
        taskFaker.advanceUntil(299.µs)
        assertThat(log).containsExactly("run@100000", "run@150000")
    
        taskFaker.advanceUntil(300.µs)
        assertThat(log).containsExactly("run@100000", "run@150000", "run@300000")
    
        taskFaker.assertNoMoreTasks()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 23K bytes
    - Viewed (0)
Back to top