Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for waitForCompletion (0.2 sec)

  1. subprojects/core/src/main/java/org/gradle/internal/work/AsyncWorkTracker.java

         * @param completion - The completion of the asynchronous work
         * @throws IllegalStateException when new work is submitted for an operation while another thread is waiting in {@link #waitForCompletion(BuildOperationRef, ProjectLockRetention)} for the same operation.
         */
        void registerWork(BuildOperationRef operation, AsyncWorkCompletion completion);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 11:22:05 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/internal/operations/DefaultBuildOperationQueueTest.groovy

            given:
            setupQueue(threads)
            def success = Mock(TestBuildOperation)
    
            when:
            runs.times { operationQueue.add(success) }
    
            and:
            operationQueue.waitForCompletion()
    
            then:
            runs * success.run(_)
    
            where:
            runs | threads
            0    | 1
            0    | 4
            0    | 10
            1    | 1
            1    | 4
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/internal/operations/DefaultBuildOperationExecutor.java

                queue.cancel();
            }
    
            try {
                queue.waitForCompletion();
            } catch (MultipleBuildOperationFailures e) {
                failures.add(e);
            }
    
            if (failures.size() == 1) {
                throw failures.get(0);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/internal/operations/DefaultBuildOperationExecutorParallelExecutionTest.groovy

            def operationFailures = [new Exception("failed operation 1"), new Exception("failed operation 2")]
            def buildQueue = Mock(BuildOperationQueue) {
                waitForCompletion() >> { throw new MultipleBuildOperationFailures(operationFailures, null) }
            }
            def buildOperationQueueFactory = Mock(BuildOperationQueueFactory) {
                create(_, _, _) >> { buildQueue }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ChainingHttpHandler.java

                handlers.add(handler);
                last = handler.getWaitPrecondition();
                return handler;
            } finally {
                lock.unlock();
            }
        }
    
        public void waitForCompletion() {
            cancelBlockedRequests();
            waitForRequestsToFinish();
    
            lock.lock();
            try {
                List<Throwable> failures = new ArrayList<Throwable>();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServer.java

        }
    
        public void start() {
            server.start();
            running = true;
        }
    
        public void stop() {
            handler.waitForCompletion();
            running = false;
            // Stop is very slow, clean it up later
            EXECUTOR_SERVICE.execute(new Runnable() {
                @Override
                public void run() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/DefaultTransform.java

                    // when performed from a worker thread (see DefaultBuildOperationQueue.waitForCompletion() which intentionally does not release the project locks while waiting)
                    // TODO - add validation to fail eagerly when a worker attempts to lock a project
                    //
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:19 UTC 2024
    - 34.8K bytes
    - Viewed (0)
Back to top