We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be89177 commit e126efbCopy full SHA for e126efb
core/src/main/java/dev/failsafe/spi/FailsafeFuture.java
@@ -81,6 +81,8 @@ public synchronized boolean cancel(boolean mayInterruptIfRunning) {
81
ExecutionResult<R> result = ExecutionResult.exception(new CancellationException());
82
super.completeExceptionally(result.getException());
83
completionHandler.accept(result, newestExecution);
84
+ newestExecution = null;
85
+ cancelFunctions = null;
86
return cancelResult;
87
}
88
@@ -99,6 +101,8 @@ public synchronized boolean completeResult(ExecutionResult<R> result) {
99
101
completed = super.completeExceptionally(exception);
100
102
if (completed)
103
104
105
106
return completed;
107
108
0 commit comments