Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 96 for waiters (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava/src/com/google/common/util/concurrent/ExecutionList.java

        // drop the contract on the method that enforces this queue like behavior since depending on it
        // is likely to be a bug anyway.
    
        // N.B. All writes to the list and the next pointers must have happened before the above
        // synchronized block, so we can iterate the list without the lock held here.
        RunnableExecutorPair reversedList = null;
        while (list != null) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 10 11:51:21 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt

      private lateinit var serverIpv6: MockWebServer
    
      private val eventRecorder = EventRecorder()
      private lateinit var client: OkHttpClient
      private lateinit var url: HttpUrl
    
      /**
       * This is mutable and order matters. By default, it contains [IPv4, IPv6]. Tests may manipulate
       * it to prefer IPv6.
       */
      private var dnsResults = listOf<InetAddress>()
    
      @BeforeEach
      internal fun setUp() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt

          reader = null
    
          if (enqueuedClose && messageAndCloseQueue.isEmpty()) {
            // Close the writer on the writer's thread.
            val writerToClose = this.writer
            if (writerToClose != null) {
              this.writer = null
              taskQueue.execute("$name writer close", cancelable = false) {
                writerToClose.closeQuietly()
              }
            }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 21.6K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/helper/DataIndexHelper.java

             *
             * @return true if the thread is actively executing
             */
            public boolean isRunning() {
                return running;
            }
    
            /**
             * Waits for the crawling thread to terminate.
             * This method blocks until the thread completes its execution.
             * Interrupted exceptions are caught and logged at debug level.
             */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 19K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/timer/TimeoutManager.java

                thread = null;
                if (logger.isDebugEnabled()) {
                    logger.debug("TimeoutManager stopped.");
                }
            }
        }
    
        /**
         * Interrupts the thread and waits for it to terminate.
         *
         * @param timeoutMillis
         *            The time to wait (in milliseconds)
         * @return <code>true</code> if the thread has terminated
         * @throws InterruptedException
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/dict/DictionaryFile.java

         */
        public DictionaryFile<T> manager(final DictionaryManager dictionaryManager) {
            this.dictionaryManager = dictionaryManager;
            return this;
        }
    
        /**
         * Writes the content of this dictionary file to the provided output stream.
         *
         * @param out the output stream to write to
         * @throws IOException if an I/O error occurs during writing
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 07:09:00 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java

            assertTrue(cos.isInMemory());
            assertFalse(cos.done);
            cos.close();
        }
    
        @Test
        public void testMultipleWritesExceedingThreshold() throws IOException {
            // Multiple writes that exceed threshold should switch to file
            ContentOutputStream cos = new ContentOutputStream(5, Curl.tmpDir);
            cos.write(new byte[] { 0, 1, 2 });
            assertTrue(cos.isInMemory());
    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)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt

      timeout: Int,
      timeUnit: TimeUnit,
    ): Boolean =
      try {
        this.skipAll(timeout, timeUnit)
      } catch (_: IOException) {
        false
      }
    
    /**
     * 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
    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)
  9. guava-tests/test/com/google/common/collect/QueuesTest.java

        try {
          // if waiting works, this should get stuck
          Queues.drain(q, new ArrayList<>(), 1, MAX_VALUE, NANOSECONDS);
          fail();
        } catch (InterruptedException expected) {
          // we indeed waited; a slow thread had enough time to interrupt us
        }
      }
    
      // same as above; uninterruptible version
      @SuppressWarnings("ThreadPriorityCheck") // TODO: b/175898629 - Consider onSpinWait.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Nov 04 17:24:58 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

          }
        }
      }
    
      /**
       * Invokes {@code condition.}{@link Condition#await(long, TimeUnit) await(timeout, unit)} in a way
       * that more conveniently supports uninterruptible waits.
       *
       * <p>If the underlying {@code await} call is interrupted, then {@code awaitUninterruptibly}
       * converts that into a <a
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 23:24:32 GMT 2026
    - 22.5K bytes
    - Click Count (0)
Back to Top