Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for maxOf (0.07 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

            if (servedDate != null) {
              maxOf(0, receivedResponseMillis - servedDate.time)
            } else {
              0
            }
    
          val receivedAge =
            if (ageSeconds != -1) {
              maxOf(apparentReceivedAge, SECONDS.toMillis(ageSeconds.toLong()))
            } else {
              apparentReceivedAge
            }
    
          val responseDuration = maxOf(0, receivedResponseMillis - sentRequestMillis)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

          //  * Find out if there's enough work to start another thread.
          eachQueue@ for (queue in readyQueues) {
            val candidate = queue.futureTasks[0]
            val candidateDelay = maxOf(0L, candidate.nextExecuteNanoTime - now)
    
            when {
              // Compute the delay of the soonest-executable task.
              candidateDelay > 0L -> {
                minDelayNanos = minOf(candidateDelay, minDelayNanos)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 10.6K bytes
    - Viewed (0)
Back to top