Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for waitUntil (0.77 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. guava/src/com/google/common/util/concurrent/ForwardingCondition.java

      @Override
      public long awaitNanos(long nanosTimeout) throws InterruptedException {
        return delegate().awaitNanos(nanosTimeout);
      }
    
      @Override
      public boolean awaitUntil(Date deadline) throws InterruptedException {
        return delegate().awaitUntil(deadline);
      }
    
      @Override
      public void signal() {
        delegate().signal();
      }
    
      @Override
      public void signalAll() {
        delegate().signalAll();
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/ForwardingCondition.java

      @Override
      public long awaitNanos(long nanosTimeout) throws InterruptedException {
        return delegate().awaitNanos(nanosTimeout);
      }
    
      @Override
      public boolean awaitUntil(Date deadline) throws InterruptedException {
        return delegate().awaitUntil(deadline);
      }
    
      @Override
      public void signal() {
        delegate().signal();
      }
    
      @Override
      public void signalAll() {
        delegate().signalAll();
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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