- Sort Score
- Num 10 results
- Language All
Results 151 - 160 of 248 for immediate (0.09 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava/src/com/google/common/collect/Queues.java
// elements already available (e.g. LinkedBlockingQueue#drainTo locks only once) added += q.drainTo(buffer, numElements - added); if (added < numElements) { // not enough elements immediately available; will have to poll E e = q.poll(deadline - System.nanoTime(), NANOSECONDS); if (e == null) { break; // we already waited enough, and there are no more elements in sight }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 18.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ds/AbstractDataStoreTest.java
} // ========== Thread Safety Tests ========== /** * Test that the volatile alive field is visible across threads. * One thread sets alive to false, other threads should see the change immediately. */ @Test public void test_aliveField_volatileVisibility() throws Exception { // Ensure alive starts as true assertTrue(dataStore.alive); final int readerThreadCount = 5;Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 12.8K bytes - Click Count (1) -
android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java
throw t; } } return; } /* * This is an unsynchronized read! After the read, the function returns immediately or acquires * the lock to check again. Since an IDLE state was observed inside the preceding synchronized * block, and reference field assignment is atomic, this may save reacquiring the lock whenCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 10.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
assertTrue(it.hasNext()); assertEquals("x", it.next().getName()); } @Test @DisplayName("Empty initial results with end-of-search -> closes immediately") void emptyInitialResultsEndOfSearchCloses() throws Exception { when(tree.send(any(Trans2FindFirst2.class), any(Trans2FindFirst2Response.class))).thenAnswer((InvocationOnMock inv) -> {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.7K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java
assertFalse(cos.done); assertFalse(cos.getFile().exists()); } @Test public void testThresholdZero() throws IOException { // With threshold 0, everything should go to file immediately ContentOutputStream cos = new ContentOutputStream(0, Curl.tmpDir); cos.write(new byte[] { 1 }); assertFalse(cos.done); assertFalse(cos.isInMemory()); File file = cos.getFile();
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 12:00:34 GMT 2026 - 11.7K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt
* Returns true if new reads and writes should be attempted on this. * * Unfortunately Java's networking APIs don't offer a good health check, so we go on our own by * attempting to read with a short timeout. If the fails immediately we know the socket is * unhealthy. * * @param source the source used to read bytes from the socket. */ internal fun Socket.isHealthy(source: BufferedSource): Boolean = try {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 10.3K bytes - Click Count (1) -
android/guava/src/com/google/common/util/concurrent/ListenerCallQueue.java
* executor. Each event can be added and dispatched as separate phases. * * <p>This class is very similar to {@link SequentialExecutor} with the exception that events can * be added without necessarily executing immediately. */ private static final class PerListenerQueue<L> implements Runnable { final L listener; final Executor executor; @GuardedBy("this")Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 8.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java
import jcifs.SmbResource; /** * Tests for {@link DirFileEntryAdapterIterator}. * * This test class verifies the basic functionality of DirFileEntryAdapterIterator. * Due to the iterator's constructor calling advance() immediately, which requires * the adapt() method to be functional, we test the behavior using simple mock * scenarios that don't require complex filter setups. */ @ExtendWith(MockitoExtension.class)Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 14.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/Multiset.java
// Views /** * Returns the set of distinct elements contained in this multiset. The element set is backed by * the same data as the multiset, so any change to either is immediately reflected in the other. * The order of the elements in the element set is unspecified. * * <p>If the element set supports any removal operations, these necessarily cause <b>all</b>
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 20.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/PurgeDocJobTest.java
try { String result = purgeDocJob.execute(); // The job should handle the exception internally but since QueryBuilders.rangeQuery // throws immediately with empty field name, we need to catch it here fail("Expected an exception for empty field name"); } catch (IllegalArgumentException e) { // Expected exception for empty field nameCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 16.4K bytes - Click Count (0)