Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for expectBlocksUntil (0.32 sec)

  1. subprojects/core/src/testFixtures/groovy/org/gradle/util/internal/MultithreadedTestRule.java

     *
     * <p>Provides an {@link java.util.concurrent.Executor} implementation, which uses test threads to execute any tasks
     * submitted to it.</p>
     *
     * <p>You can use {@link #syncAt(int)} and {@link #expectBlocksUntil(int, groovy.lang.Closure)} to synchronise between
     * test threads.</p>
     */
    public class MultithreadedTestRule extends ExternalResource {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 23.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/dispatch/AsyncDispatchTest.groovy

                parallel.syncAt(1)
    
                dispatch.dispatchTo(target2)
                dispatch.dispatch('message2')
                parallel.syncAt(2)
    
                parallel.expectBlocksUntil(3) {
                    dispatch.stop()
                }
            }
    
            then:
            target1.receivedMessages == ['message1']
            target2.receivedMessages == ['message2']
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 6.5K bytes
    - Viewed (0)
Back to top