Race race = new Race();
final long[] latestRelationshipId = new long[1];
AtomicLong writes = new AtomicLong();
AtomicLong reads = new AtomicLong();
long endTime = currentTimeMillis() + SECONDS.toMillis( 2 );
<BUG>BooleanSupplier end = () -> (writes.get() > 100 && reads.get() > 10_000) || currentTimeMillis() > endTime;

race.addContestant( until( end, () ->
{</BUG>
try ( Transaction tx = db.beginTx() )

Race race = new Race();
final long[] latestRelationshipId = new long[1];
AtomicLong writes = new AtomicLong();
AtomicLong reads = new AtomicLong();
long endTime = currentTimeMillis() + SECONDS.toMillis( 2 );
race.withEndCondition( () -> (writes.get() > 100 && reads.get() > 10_000) || currentTimeMillis() > endTime );
race.addContestant( () ->
