How to interrupt underlying execution of CompletableFuture
I know that CompletableFuture design does not control its execution with interruptions, but I suppose some of you might have this problem. CompletableFuture s are very good way to compose async execution, but given the case when you want the underlying execution to be interrupted or stopped when future is canceled, how do we do that? Or we must just accept that any canceled or manually completed CompletableFuture will not impact the thread working out there to complete it? That is, in my opinion, obviously a useless work that takes time of executor worker. I wonder what approach or design