Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for toSeconds (0.03 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CacheControl.kt

         */
        fun maxAge(
          maxAge: Int,
          timeUnit: TimeUnit,
        ) = apply {
          require(maxAge >= 0) { "maxAge < 0: $maxAge" }
          val maxAgeSecondsLong = timeUnit.toSeconds(maxAge.toLong())
          this.maxAgeSeconds = maxAgeSecondsLong.commonClampToInt()
        }
    
        /**
         * Accept cached responses that have exceeded their freshness lifetime by up to `maxStale`. If
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        // waited and assert based on that time. Empirically, the race where the thread ends up waiting
        // for 5.5 seconds happens about 2% of the time.
        boolean longWait = NANOSECONDS.toSeconds(thread.timeSpentBlocked) >= 5;
        // Count how long it actually took to return; we'll accept any number between the expected delay
        // and the approximate actual delay, to be robust to variance in thread scheduling.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        // waited and assert based on that time. Empirically, the race where the thread ends up waiting
        // for 5.5 seconds happens about 2% of the time.
        boolean longWait = NANOSECONDS.toSeconds(thread.timeSpentBlocked) >= 5;
        // Count how long it actually took to return; we'll accept any number between the expected delay
        // and the approximate actual delay, to be robust to variance in thread scheduling.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 46.8K bytes
    - Viewed (0)
Back to top