Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for waitUntil (0.34 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

          unit: TimeUnit,
        ): T? {
          taskRunner.lock.withLock {
            val waitUntil = nanoTime + unit.toNanos(timeout)
            while (true) {
              val result = poll()
              if (result != null) return result
              if (nanoTime >= waitUntil) return null
              val editCountBefore = editCount
              yieldUntil { nanoTime >= waitUntil || editCount > editCountBefore }
            }
          }
        }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  2. subprojects/core/src/testFixtures/groovy/org/gradle/util/internal/MultithreadedTestRule.java

                Date expiry = new Date(System.currentTimeMillis() + 2 * MAX_WAIT_TIME);
                if (!waitUntil(expiry)) {
                    throw new RuntimeException("timeout waiting for test thread to stop.");
                }
                return this;
            }
    
            @Override
            public boolean waitUntil(Date expiry) {
                if (isCurrentThread()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 23.3K bytes
    - Viewed (0)
  3. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/ConcurrentTestUtil.groovy

            Date timeout = shortTimeout()
            lock.lock()
            try {
                LOG.info("Waiting for test threads to complete.")
                while (!threads.isEmpty()) {
                    if (!threadsChanged.awaitUntil(timeout)) {
                        failed(new IllegalStateException("Timeout waiting for test threads to complete."))
                        break;
                    }
                }
                threads.each { thread ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

            return condition.awaitNanos(nanosTimeout);
          } finally {
            lock.unlock();
          }
        }
    
        @Override
        public boolean awaitUntil(Date deadline) throws InterruptedException {
          lock.lock();
          try {
            return condition.awaitUntil(deadline);
          } finally {
            lock.unlock();
          }
        }
    
        @Override
        public void signal() {
          lock.lock();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 16:06:39 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

            return condition.awaitNanos(nanosTimeout);
          } finally {
            lock.unlock();
          }
        }
    
        @Override
        public boolean awaitUntil(Date deadline) throws InterruptedException {
          lock.lock();
          try {
            return condition.awaitUntil(deadline);
          } finally {
            lock.unlock();
          }
        }
    
        @Override
        public void signal() {
          lock.lock();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 30.9K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/suggest/SuggesterTest.java

            runner.client().prepareIndex().setIndex(suggester.settings().analyzer().getAnalyzerSettingsIndexName()).setSource(analyzerMapping)
                    .setRefreshPolicy(WriteRequest.RefreshPolicy.WAIT_UNTIL).execute().actionGet();
            suggester.settings().analyzer().init();
    
            SuggestSettings settings = suggester.settings();
            settings.array().add(SuggestSettings.DefaultKeys.SUPPORTED_FIELDS, field);
    
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 37K bytes
    - Viewed (0)
Back to top