- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for cancelLater (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt
sink.flush() sleep(100) } fail("Expected connection to be closed") } }, ), ) cancelLater(call, 500) assertFailsWith<IOException> { call.execute() }.also { expected -> assertEquals(cancelMode == INTERRUPT, Thread.interrupted()) } } @Test
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 9.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
client.newCall( Request( server .url("/") .newBuilder() .scheme(scheme!!) .build(), ), ) cancelLater(call, cancelDelayMillis) val startNanos = System.nanoTime() assertFailsWith<IOException> { call.execute() } val elapsedNanos = System.nanoTime() - startNanos
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 147.4K bytes - Click Count (0)