Skip to content

Commit

Permalink
Merge pull request #992 from Ladicek/fix-fault-tolerance-run-result-c…
Browse files Browse the repository at this point in the history
…reation

fix how FaultTolerance.run() constructs the result in async mode
  • Loading branch information
Ladicek authored Mar 25, 2024
2 parents a218dbb + 1d9715e commit 1d3a431
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,9 @@ public T call(Callable<T> action) throws Exception {
@Override
public void run(Runnable action) {
try {
T unusedResult = asyncSupport == null ? null : asyncSupport.createComplete(null);
call(() -> {
action.run();
return unusedResult;
return asyncSupport == null ? null : asyncSupport.createComplete(null);
});
} catch (RuntimeException e) {
throw e;
Expand Down

0 comments on commit 1d3a431

Please sign in to comment.