Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,14 @@ Here is how you can use a lock:
```java
Locks locks = sttc.locks();
Lock lock = locks.get("test-lock");
new Atomic(lock).call(
new Callable<Void>() {
@Override
public void call() {
// perfectly synchronized code
return null;
}
Callable<Void> work = new Callable<Void>() {
@Override
public Void call() {
// perfectly synchronized code
return null;
}
);
};
new Atomic<Void>(work, lock).call();
```

## How to Contribute
Expand Down
Loading