Skip to content

Commit 6a8de79

Browse files
committed
FailsafeFuture.completeExceptionally should be synchronized
1 parent cd12157 commit 6a8de79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/jodah/failsafe/FailsafeFuture.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public synchronized boolean complete(T value) {
5050
* handlers.
5151
*/
5252
@Override
53-
public boolean completeExceptionally(Throwable failure) {
53+
public synchronized boolean completeExceptionally(Throwable failure) {
5454
return completeResult(ExecutionResult.failure(failure));
5555
}
5656

0 commit comments

Comments
 (0)