Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for drainQueue (0.71 sec)

  1. samples/crawler/src/main/java/okhttp3/sample/Crawler.java

        for (int i = 0; i < threadCount; i++) {
          executor.execute(() -> {
            try {
              drainQueue();
            } catch (Throwable e) {
              e.printStackTrace();
            }
          });
        }
        executor.shutdown();
      }
    
      private void drainQueue() throws Exception {
        for (HttpUrl url; (url = queue.take()) != null; ) {
          if (!fetchedUrls.add(url)) {
            continue;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jul 23 00:58:06 UTC 2025
    - 5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/Striped.java

              return existing;
            }
          }
          drainQueue();
          return created;
        }
    
        // N.B. Draining the queue is only necessary to ensure that we don't accumulate empty references
        // in the array. We could skip this if we decide we don't care about holding on to Reference
        // objects indefinitely.
        private void drainQueue() {
          Reference<? extends L> ref;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  3. okhttp/src/androidMain/baseline-prof.txt

    HSPLandroidx/lifecycle/DispatchQueue$dispatchAndEnqueue$$inlined$with$lambda$1;->run()V
    HSPLandroidx/lifecycle/DispatchQueue;-><init>()V
    HSPLandroidx/lifecycle/DispatchQueue;->canRun()Z
    HSPLandroidx/lifecycle/DispatchQueue;->drainQueue()V
    HSPLandroidx/lifecycle/DispatchQueue;->enqueue(Ljava/lang/Runnable;)V
    HSPLandroidx/lifecycle/Lifecycle$1;-><clinit>()V
    HSPLandroidx/lifecycle/Lifecycle$Event;-><clinit>()V
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Dec 30 23:28:56 UTC 2024
    - 127.9K bytes
    - Viewed (0)
Back to top