Skip to content

Checkpoint awaitability #24

@vietj

Description

@vietj

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();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions