I am struggling to figure out why the task is not cancelling when using CompletableFuture#cancel
. Essentially, I am creating an asynchronous task, which does it's thing (time consuming), after it finishes a single "part" it checks the original future to see if it was ComplateableFuture#isCancelled
.
Here's the commit (ignore some useless code) - the invocation is in the test. The archive handler checks the cancelled state. https://github.com/Axieum/Compressum/commit/ccc1edcbac8df684e10339f4106a7b1817af9397