Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
stawirej committed Dec 22, 2023
1 parent 6f1d0f9 commit 586ad29
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ public class Counter {
```java
private static final int ACTION_THREADS_COUNT = Runtime.getRuntime().availableProcessors() / 2;

@RepeatedTest(10)
// run test multiple times to increase chance of manifesting concurrency issues
@RepeatedTest(10) // run test multiple times to increase chance of manifesting concurrency issues
void Thread_safe_counter() {
// Given
Counter counter = new Counter();
Expand All @@ -139,8 +138,7 @@ void Thread_safe_counter() {
.times(ACTION_THREADS_COUNT) // set number of threads to execute first action
.withAction(counter::decrement) // second action to be executed simultaneously
.times(ACTION_THREADS_COUNT) // set number of threads to execute second action
.withThreadsExceptionsConsumer(
exceptions::add) // optional threads exceptions consumer, default do nothing
.withThreadsExceptionsConsumer(exceptions::add) // optional threads exceptions consumer, default do nothing
.build()) {

threadsCollider.collide();
Expand Down

0 comments on commit 586ad29

Please sign in to comment.