- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for expectLater (0.1 sec)
-
subprojects/core/src/test/groovy/org/gradle/util/internal/DisconnectableInputStreamTest.groovy
@Test void readerThreadBlocksWhenBufferFull() { def source = stream() source.onRead { buffer, pos, count -> System.arraycopy('abcdefghij'.bytes, 0, buffer, pos, 10) expectLater(1) return 10 } source.onRead { buffer, pos, count -> shouldBeAt(1) return -1 }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 07 08:18:46 UTC 2021 - 8.5K bytes - Viewed (0) -
subprojects/core/src/testFixtures/groovy/org/gradle/util/internal/MultithreadedTestRule.java
* Expects that the given tick will be reached at some point in the future. Does not block until the tick has been * reached. * * @param tick The expected clock tick. */ public void expectLater(final int tick) { final Thread targetThread = Thread.currentThread(); LOGGER.debug("Thread {} expecting tick {}", targetThread, tick); start(new Runnable() { @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 05 19:36:14 UTC 2023 - 23.3K bytes - Viewed (0)