- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 1,297 for While (0.09 seconds)
-
tests/test_stream_cancellation.py
"""Async generator with no internal await - would hang without checkpoint.""" i = 0 while True: yield f"item {i}\n" i += 1 @app.get("/stream-jsonl") async def stream_jsonl() -> AsyncIterable[int]: """JSONL async generator with no internal await.""" i = 0 while True: yield i i += 1Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 27 18:56:47 GMT 2026 - 2.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/WebPlatformUrlTestData.kt
companion object { fun load(source: BufferedSource): List<WebPlatformUrlTestData> { val list = mutableListOf<WebPlatformUrlTestData>() while (true) { val line = source.readUtf8Line() ?: break if (line.isEmpty() || line.startsWith("#")) continue var i = 0 val parts = line.split(Regex(" ")).toTypedArray()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
assertIntact(q); q.remove(9); q.remove(11); q.remove(10); // Now we're in the critical state: [1, 15, 13, 8, 14] // Removing 8 while iterating caused duplicates in iteration result. List<Integer> result = Lists.newArrayListWithCapacity(initial.size()); for (Iterator<Integer> iter = q.iterator(); iter.hasNext(); ) { Integer value = iter.next();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 36.2K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/path/DefaultUrlNormalizer.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 2K bytes - Click Count (0) -
android/guava/src/com/google/common/io/ByteStreams.java
position += copied; sourceChannel.position(position); } while (copied > 0 || position < sourceChannel.size()); return position - oldPosition; } ByteBuffer buf = ByteBuffer.wrap(createBuffer()); long total = 0; while (from.read(buf) != -1) { Java8Compatibility.flip(buf); while (buf.hasRemaining()) { total += to.write(buf); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 31.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
} } /** * Only call this method while holding a tree handle * * @return the connected tree type */ public int getTreeType() { try (SmbTreeImpl t = getTree()) { return t.getTreeType(); } } /** * * Only call this method while holding a tree handle * * @return the share we are connected toCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 30.4K bytes - Click Count (1) -
src/main/java/jcifs/smb/SmbCopyUtil.java
final long atime = src.lastAccess(); int i = 0; long off = 0L; while (true) { final int read = fis.read(b[i]); synchronized (w) { w.checkException(); while (!w.isReady()) { try { w.wait();
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) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/JavadocScanner.java
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 4.3K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/Cache.java
* * @throws ExecutionException if a checked exception was thrown while loading the value * @throws UncheckedExecutionException if an unchecked exception was thrown while loading the * value * @throws ExecutionError if an error was thrown while loading the value * @since 11.0 */ @CanIgnoreReturnValue // TODO(b/27479612): consider removing this
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 8.3K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java
executor.execute( () -> { try { startUp(); notifyStarted(); // If stopAsync() is called while starting we may be in the STOPPING state in // which case we should skip right down to shutdown. if (isRunning()) { try {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Jul 11 18:52:30 GMT 2025 - 7.2K bytes - Click Count (0)