Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for waitForCompletion (0.24 sec)

  1. platforms/documentation/docs/src/snippets/workerApi/waitForCompletion/tests/waitForCompletion.sample.conf

    Laura Kassovic <******@****.***> 1701107622 -0800
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 38 bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/internal/work/DefaultAsyncWorkTrackerTest.groovy

                workerThread {
                    asyncWorkTracker.waitForCompletion(operation1, RELEASE_PROJECT_LOCKS)
                }
                thread.blockUntil.waitStarted
                workerThread {
                    try {
                        asyncWorkTracker.registerWork(operation1, new AsyncWorkCompletion() {
                            @Override
                            void waitForCompletion() {
                            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 06 04:53:10 UTC 2023
    - 14.9K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/execution/ExecuteActionsTaskExecuterTest.groovy

            then:
            1 * action1.execute(task) >> {
                assert state.executing
            }
            then:
            1 * action1.clearInputChanges()
            then:
            1 * asyncWorkTracker.waitForCompletion(_, RELEASE_AND_REACQUIRE_PROJECT_LOCKS)
            then:
            1 * standardOutputCapture.stop()
            then:
            1 * standardOutputCapture.start()
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/operations/BuildOperationQueue.java

     * <p>
     * The queue is active in that operations are potentially executed as soon as they are added.
     * The queue is single use in that no further work can be added once {@link #waitForCompletion()} has completed.
     * <p>
     * A queue instance is threadsafe. Build operations can submit further operations to the queue but must not block waiting for them to complete.
     *
     * @param <T> type of build operations to hold
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/internal/work/DefaultAsyncWorkTracker.java

                }
                items.put(operation, workCompletion);
            } finally {
                lock.unlock();
            }
        }
    
        @Override
        public void waitForCompletion(BuildOperationRef operation, ProjectLockRetention lockRetention) {
            final List<AsyncWorkCompletion> workItems;
            lock.lock();
            try {
                workItems = ImmutableList.copyOf(items.get(operation));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 6K bytes
    - Viewed (0)
  8. pkg/util/goroutinemap/goroutinemap.go

    	// and evaluate results after that.
    	Wait()
    
    	// WaitForCompletion blocks until either all operations have successfully completed
    	// or have failed but are not pending. The test should wait until operations are either
    	// complete or have failed.
    	WaitForCompletion()
    
    	// IsOperationPending returns true if the operation is pending (currently
    	// running), otherwise returns false.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 16 11:54:27 UTC 2020
    - 6.8K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/internal/work/AsyncWorkCompletion.java

    /**
     * Represents the completion of an item of asynchronous work
     */
    public interface AsyncWorkCompletion {
        /**
         * Block until the work item has completed.
         */
        void waitForCompletion();
    
        /**
         * Returns true if the work item is completed.
         */
        boolean isComplete();
    
        /**
         * Cancels this work item.
         */
        void cancel();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 14 16:55:12 UTC 2018
    - 1017 bytes
    - Viewed (0)
  10. platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/DefaultWorkerExecutorParallelTest.groovy

            when:
            workerExecutor.await()
    
            then:
            1 * asyncWorkerTracker.waitForCompletion(_, RETAIN_PROJECT_LOCKS)
        }
    
        def "all errors are thrown when waiting on multiple results"() {
            when:
            workerExecutor.await()
    
            then:
            1 * asyncWorkerTracker.waitForCompletion(_, RETAIN_PROJECT_LOCKS) >> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 14:22:31 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top