Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for waitUntilBlocked (0.26 sec)

  1. testing/internal-integ-testing/src/test/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServerTest.groovy

                start {
                    succeeds("a")
                    instant.aDone
                    succeeds("b")
                }
                request1.waitUntilBlocked()
                instant.aBlocked
                request1.release()
                request2.waitUntilBlocked()
                request2.release()
            }
            server.stop()
    
            then:
            instant.aDone > instant.aBlocked
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  2. subprojects/core/src/testFixtures/groovy/org/gradle/util/internal/MultithreadedTestRule.java

            }
        }
    
        public interface ThreadHandle {
            ThreadHandle waitFor();
    
            boolean waitUntil(Date expiry);
    
            boolean isCurrentThread();
    
            void waitUntilBlocked();
        }
    
        public interface ClockTick {
            ClockTick hasParticipants(int count);
        }
    
        private static class ClockTickImpl implements ClockTick {
            private final int number;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 23.3K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiRemoteIntegrationTest.groovy

                    .forTasks("help")
                    .withCancellationToken(tokenSource.token())
                    .addProgressListener(events)
                    .run(handler)
                downloadHandle.waitUntilBlocked()
                tokenSource.cancel()
                handler.finished()
                downloadHandle.release()
            }
    
            then:
            handler.assertFailedWith(BuildCancelledException)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServer.java

         */
        public interface BlockingRequest extends ExpectedRequest {
            /**
             * Waits for the request to be received and blocked.
             */
            void waitUntilBlocked();
    
            /**
             * Unblock the request.
             */
            void release();
        }
    
        /**
         * Allows the test to synchronise with and unblock requests.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 21.7K bytes
    - Viewed (0)
Back to top