- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for hasDeadline (0.1 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt
*/ @Throws(IOException::class) internal fun Source.skipAll( duration: Int, timeUnit: TimeUnit, ): Boolean { val nowNs = System.nanoTime() val originalDurationNs = if (timeout().hasDeadline()) { timeout().deadlineNanoTime() - nowNs } else { Long.MAX_VALUE } timeout().deadlineNanoTime(nowNs + minOf(originalDurationNs, timeUnit.toNanos(duration.toLong()))) return try {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon May 13 13:42:37 UTC 2024 - 10.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
object : RequestBody() { override fun contentType(): MediaType = "text/plain".toMediaType() override fun writeTo(sink: BufferedSink) { assertThat(sink.timeout().hasDeadline()).isFalse() sink.writeUtf8("def") } } val request2 = Request.Builder() .url(server.url("/")) .method("POST", requestBody2) .build()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 142.5K bytes - Viewed (0)