- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for queuedCallsCount (0.17 sec)
-
okhttp/src/test/java/okhttp3/DispatcherTest.kt
a1.enqueue(callback) a2.enqueue(callback) a3.enqueue(callback) a4.enqueue(callback) a5.enqueue(callback) assertThat(dispatcher.runningCallsCount()).isEqualTo(3) assertThat(dispatcher.queuedCallsCount()).isEqualTo(2) assertThat(dispatcher.runningCalls()) .containsExactlyInAnyOrder(a1, a2, a3) assertThat(dispatcher.queuedCalls()) .containsExactlyInAnyOrder(a4, a5) } @Test
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 12.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Dispatcher.kt
fun runningCalls(): List<Call> = this.withLock { return Collections.unmodifiableList(runningSyncCalls + runningAsyncCalls.map { it.call }) } fun queuedCallsCount(): Int = this.withLock { readyAsyncCalls.size } fun runningCallsCount(): Int = this.withLock { runningAsyncCalls.size + runningSyncCalls.size } @JvmName("-deprecated_executorService") @Deprecated(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
dispatcher.idleCallback = Runnable { ({ TODO() })() } val queuedCalls: List<Call> = dispatcher.queuedCalls() val runningCalls: List<Call> = dispatcher.runningCalls() val queuedCallsCount: Int = dispatcher.queuedCallsCount() val runningCallsCount: Int = dispatcher.runningCallsCount() dispatcher.cancelAll() } @Test fun dispatcherFromMockWebServer() { val dispatcher =
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 14:21:25 GMT 2024 - 46.5K bytes - Viewed (4) -
okhttp/api/okhttp.api
public final fun getIdleCallback ()Ljava/lang/Runnable; public final fun getMaxRequests ()I public final fun getMaxRequestsPerHost ()I public final fun queuedCalls ()Ljava/util/List; public final fun queuedCallsCount ()I public final fun runningCalls ()Ljava/util/List; public final fun runningCallsCount ()I public final fun setIdleCallback (Ljava/lang/Runnable;)V public final fun setMaxRequests (I)V
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:41:01 GMT 2024 - 70.2K bytes - Viewed (0)