Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. okhttp/src/commonJvmAndroid/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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 12K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 10.4K bytes
    - Viewed (0)
Back to top