Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for selectNext (0.25 sec)

  1. subprojects/core/src/test/groovy/org/gradle/execution/plan/DefaultPlanExecutorTest.groovy

            then:
            1 * cancellationHandler.isCancellationRequested() >> false
            1 * workerLease.tryLock() >> true
            1 * workSource.executionState() >> WorkSource.State.MaybeWorkReadyToStart
            1 * workSource.selectNext() >> WorkSource.Selection.of(node)
            1 * worker.execute(node)
            1 * workSource.finishedExecuting(node, null)
    
            then:
            1 * cancellationHandler.isCancellationRequested() >> false
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/execution/plan/WorkSource.java

    public interface WorkSource<T> {
        enum State {
            /**
             * There may be work ready to start. The worker thread should call {@link #selectNext()} to select the next item.
             * Note this does not mean that {@link #selectNext()} will necessarily return an item, only that it is likely to.
             * {@link #selectNext()} may not return an item, for example when some other worker thread takes the work.
             */
            MaybeWorkReadyToStart,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Nov 13 20:53:27 UTC 2022
    - 7.5K bytes
    - Viewed (0)
Back to top