Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 2,355 for nwait (0.05 sec)

  1. platforms/documentation/docs/src/snippets/workerApi/waitForCompletion/groovy/build.gradle

                }
            }
    
            // Wait for all asynchronous work submitted to this queue to complete before continuing
            workQueue.await()
            logger.lifecycle("Created ${outputDir.get().asFile.listFiles().length} reversed files in ${projectLayout.projectDirectory.asFile.relativePath(outputDir.get().asFile)}")
    
            // end::wait-for-completion[]
        }
    }
    
    task reverseFiles(type: ReverseFiles) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

                                  // WAIT #1
                                  barrier.await(1, TimeUnit.SECONDS);
    
                                  // WAIT #2
                                  barrier.await(1, TimeUnit.SECONDS);
                                  assertTrue(executor.isShutdown());
                                  assertFalse(executor.isTerminated());
    
                                  // WAIT #3
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 28.2K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultConditionalExecutionQueueTest.groovy

                thread.blockUntil.execution3Started
    
                instant.execution2Released
                execution2.await()
    
                instant.execution1Released
                execution1.await()
    
                instant.execution3Released
                execution3.await()
            }
        }
    
        def "can submit executions from many threads"() {
            def execution1 = testExecution({
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

            };
        Thread runner = new Thread(task);
        runner.start();
        isInterruptibleRegistered.await();
        RuntimeException expected = assertThrows(RuntimeException.class, () -> task.interruptTask());
        assertThat(expected)
            .hasMessageThat()
            .isEqualTo("I bet you didn't think Thread.interrupt could throw");
        // We need to wait for the runner to exit.  It used to be that the runner would get stuck in the
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

            };
        Thread runner = new Thread(task);
        runner.start();
        isInterruptibleRegistered.await();
        RuntimeException expected = assertThrows(RuntimeException.class, () -> task.interruptTask());
        assertThat(expected)
            .hasMessageThat()
            .isEqualTo("I bet you didn't think Thread.interrupt could throw");
        // We need to wait for the runner to exit.  It used to be that the runner would get stuck in the
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

                                  // WAIT #1
                                  barrier.await(1, TimeUnit.SECONDS);
    
                                  // WAIT #2
                                  barrier.await(1, TimeUnit.SECONDS);
                                  assertTrue(executor.isShutdown());
                                  assertFalse(executor.isTerminated());
    
                                  // WAIT #3
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 28.2K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/internal/operations/MaxWorkersTest.groovy

                    }
                }
    
                leaseAcquiredLatch.await()
    
                // release the first queue to submit its work
                synchronized (release) {
                    release.notify()
                }
    
                // Wait for all worker leases to be utilized running work
                runningLatch.await()
                fullyUtilizedLatch.countDown()
            }
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerResultIntegrationTest.groovy

                    doLast {
                      startLatch.countDown() // allow b to finish
                      stopLatch.await() // wait for d to start
                    }
                  }
                }
    
                project(":b") {
                  task t {
                    doLast {
                      startLatch.await() // wait for a to start
                    }
                  }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  9. platforms/core-runtime/launcher/src/main/java/org/gradle/tooling/internal/provider/continuous/ContinuousBuildTriggerHandler.java

                return;
            }
            try {
                cancellationToken.addCallback(cancellationHandler);
                notifier.run();
                changeOrCancellationArrived.await();
                while (!cancellationToken.isCancellationRequested()) {
                    Instant now = nowFromMonotonicClock();
                    Instant endOfQuietPeriod = lastChangeAt.plus(quietPeriod);
                    if (!endOfQuietPeriod.isAfter(now)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/Uninterruptibles.java

      /** Invokes {@code latch.}{@link CountDownLatch#await() await()} uninterruptibly. */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
      public static void awaitUninterruptibly(CountDownLatch latch) {
        boolean interrupted = false;
        try {
          while (true) {
            try {
              latch.await();
              return;
            } catch (InterruptedException e) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 18.7K bytes
    - Viewed (0)
Back to top