-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
It's often convenient to use a checkpoint as latch to yield the main thread when a condition is met:
Checkpoint checkpoint = ctx.checkpoint();
webClient(callback -> {
checkpoint.flag();
});
// Await until the checkpoint si met
// we are on the JUnit thread, so it's ok and very convenient
checkpoint.await();