Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 139 for Sleeps (0.03 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt

        }
      }
    
      @Test
      fun fullCallTimeoutDoesNotApplyOnceConnected() {
        enableProtocol(Protocol.HTTP_2)
        val body =
          MockSocketHandler()
            .sendResponse("response A\n")
            .sleep(750, TimeUnit.MILLISECONDS)
            .sendResponse("response B\n")
            .receiveRequest("request C\n")
            .exhaustResponse()
            .exhaustRequest()
        server.enqueue(
          MockResponse
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache2/Relay.kt

     *
     * As bytes are returned from upstream they are written to a local file. Downstream sources read
     * from this file as necessary.
     *
     * This class also keeps a small buffer of bytes recently read from upstream. This is intended to
     * save a small amount of file I/O and data copying.
     */
    class Relay private constructor(
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 17:15:47 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

     * }
     *
     * <p>Even if your non-test code does not use finalization, you can use this class to test for
     * leaks, by ensuring that objects are no longer strongly referenced:
     *
     * {@snippet :
     * // Helper function keeps victim stack-unreachable.
     * private WeakReference<Foo> fooWeakRef() {
     *   Foo x = ....;
     *   WeakReference<Foo> weakRef = new WeakReference<>(x);
     *   // ... use x ...
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

          DerHeader(
            tagClass = DerHeader.TAG_CLASS_UNIVERSAL,
            tag = DerHeader.TAG_END_OF_CONTENTS,
            constructed = false,
            length = -1L,
          )
      }
    
      /** A source that keeps track of how many bytes it's consumed. */
      private class CountingSource(
        source: Source,
      ) : ForwardingSource(source) {
        var bytesRead = 0L
    
        override fun read(
          sink: Buffer,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/RelatedQueryHelperTest.java

            mockBhv.setTestData(testData);
    
            relatedQueryHelper.update();
            // Give a moment for async execution
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                // ignore
            }
    
            results = relatedQueryHelper.getRelatedQueries("test");
            assertEquals("updated", results[0]);
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/GcFinalization.java

     * }
     *
     * <p>Even if your non-test code does not use finalization, you can use this class to test for
     * leaks, by ensuring that objects are no longer strongly referenced:
     *
     * {@snippet :
     * // Helper function keeps victim stack-unreachable.
     * private WeakReference<Foo> fooWeakRef() {
     *   Foo x = ....;
     *   WeakReference<Foo> weakRef = new WeakReference<>(x);
     *   // ... use x ...
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

             * than a handful of exceptions. But it seems prudent to set a cap on how many we'll cache.
             * This avoids out-of-control memory consumption, and it keeps the cache from growing so
             * large that doing the lookup is noticeably slower than redoing the work would be.
             *
             * Ideally we'd have a real eviction policy, but until we see a problem in practice, I hope
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/SystemHelper.java

                    }
                    if (logger.isDebugEnabled()) {
                        logger.debug("Waiting threads: {}", waitingThreadNames);
                    }
                    ThreadUtil.sleep(systemCpuCheckInterval);
                    current = getSystemCpuPercent();
                }
            } finally {
                waitingThreadNames.remove(threadName);
            }
            return true;
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 36.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/IntervalControlHelper.java

         * and applies it by sleeping the current thread.
         */
        public void delayByRules() {
            final long delay = getDelay();
            if (delay > 0) {
                ThreadUtil.sleep(delay);
            }
        }
    
        /**
         * Calculates the delay in milliseconds based on current time and configured rules.
         * The method checks each rule to see if it applies to the current time and day.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/CompactHashSet.java

       * elements.length) are all {@code null}.
       */
      @VisibleForTesting transient @Nullable Object @Nullable [] elements;
    
      /**
       * Keeps track of metadata like the number of hash table bits and modifications of this data
       * structure (to make it possible to throw ConcurrentModificationException in the iterator). Note
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 23.9K bytes
    - Viewed (0)
Back to top