- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for EventListenerRelay (0.07 sec)
-
okhttp-testing-support/src/main/kotlin/okhttp3/EventListenerRelay.kt
* * Each instance processes a single event on [call], and then adds a successor [EventListenerRelay] * on the same [call] to process the next event. * * By forcing the list of listeners to change after every event, we can detect if buggy code caches * a stale [EventListener] in a field or local variable. */ class EventListenerRelay( val call: Call, val eventRecorder: EventRecorder, ) {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Nov 05 18:28:35 UTC 2025 - 1.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
when (listenerInstalledOn) { ListenerInstalledOn.Call -> { addEventListener(eventRecorder.eventListener) } ListenerInstalledOn.Relay -> { addEventListener(EventListenerRelay(this, eventRecorder).eventListener) } ListenerInstalledOn.Client -> {} // listener is added elsewhere. } } enum class ListenerInstalledOn { Client, Call,
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Nov 05 18:28:35 UTC 2025 - 70.5K bytes - Viewed (0)