Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

        for (int i = 0; i < threadCount; i++) {
          executor.execute(() -> {
            try {
              drainQueue();
            } catch (Exception e) {
              e.printStackTrace();
            }
          });
        }
        executor.shutdown();
      }
    
      private void drainQueue() throws Exception {
        for (HttpUrl url; (url = queue.take()) != null; ) {
          if (!fetchedUrls.add(url)) {
            continue;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Aug 12 07:26:27 UTC 2021
    - 4.6K 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  3. okhttp-android/src/main/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Mar 21 11:22:00 UTC 2022
    - 127.9K bytes
    - Viewed (0)
Back to top