- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for chainWithReadTimeout (0.13 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt
org.junit.jupiter.api.Assertions.assertTrue( elapsedNanos < TimeUnit.SECONDS.toNanos(5), "Timeout should have taken ~100ms but was " + elapsedNanos / 1e6 + " ms", ) } @Test fun chainWithReadTimeout() { val interceptor1 = Interceptor { chainA: Interceptor.Chain -> assertThat(chainA.readTimeoutMillis()).isEqualTo(5000) val chainB = chainA.withReadTimeout(100, TimeUnit.MILLISECONDS)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 28.2K bytes - Viewed (0)