Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for waitUntil (0.22 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. 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)
  3. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/TestExecutor.groovy

                if (!threads.isEmpty()) {
                    logger.log "waiting for ${threads.size()} test threads to complete."
                }
    
                while (!threads.isEmpty()) {
                    if (!condition.awaitUntil(expiry)) {
                        break;
                    }
                }
    
                if (!threads.isEmpty()) {
                    logger.log "timeout waiting for ${threads.size()} threads to complete"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/process/internal/worker/DefaultWorkerProcess.java

            lock.lock();
            try {
                while (connection == null && running) {
                    try {
                        if (!condition.awaitUntil(connectExpiry)) {
                            throw new ExecException(format("Unable to connect to the child process '%s'.\n"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 19 14:39:33 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. 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)
  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