-
-
Save jponge/aa990083c857160bb12ae9a1f627855b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
void countThreeTicks() { | |
AtomicInteger counter = new AtomicInteger(); | |
vertx.setPeriodic(100, id -> { | |
if (counter.incrementAndGet() == 3) { | |
// TADA, test completes! | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment