- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for isReady (0.1 seconds)
-
okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt
val index = serialTaskQueue.indexOfFirst { it.isReady() } if (index == -1) return null val nextTask = serialTaskQueue.removeAt(index) currentTask = nextTask contextSwitchCount++ nextTask.start() return nextTask } private interface SerialTask { /** Returns true if this task is ready to start. */ fun isReady() = trueCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed May 28 23:28:25 GMT 2025 - 11.9K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt
private lateinit var socket: BufferedSocket private var connection: RealConnection? = null /** True if this connection is ready for use, including TCP, tunnels, and TLS. */ override val isReady: Boolean get() = protocol != null private fun copy( attempt: Int = this.attempt, tunnelRequest: Request? = this.tunnelRequest, connectionSpecIndex: Int = this.connectionSpecIndex,Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 19.3K bytes - Click Count (2) -
src/main/java/jcifs/smb/SmbCopyUtil.java
while (true) { final int read = fis.read(b[i]); synchronized (w) { w.checkException(); while (!w.isReady()) { try { w.wait(); } catch (final InterruptedException ie) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 16.6K bytes - Click Count (0) -
src/test/java/jcifs/http/NetworkExplorerTest.java
@Override public void write(int b) throws IOException { outputStream.write(b); } @Override public boolean isReady() { return true; } @Override public void setWriteListener(WriteListener listener) { } };Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 21.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbCopyUtilTest.java
synchronized (w) { long deadline = System.currentTimeMillis() + 2000; while (!w.isReady() && System.currentTimeMillis() < deadline) { w.wait(10); } assertTrue(w.isReady(), "WriterThread should be ready to accept work"); // Act: submit a write w.write(payload, 3, out); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt
doExtensiveHealthChecks = doExtensiveHealthChecks, address = address, call = call, routes = routes, requireMultiplexed = planToReplace != null && planToReplace.isReady, ) ?: return null // If we coalesced our connection, remember the replaced connection's route. That way if the // coalesced connection later fails we don't waste a valid route.Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 12.1K bytes - Click Count (0)