You've laid out really good arguments as to why Java Threads cannot be cancelled, and suggested that userspace threads -- which I (perhaps mistakenly) interpreted as CompletableFutures -- should be able to be cancelled.
But the thing is, I can cancel (request) Java Threads. And I cannot cancel CompletableFutures.
From my original comment:
> But CFs lack the functionality of Threads. A CF can't decide to sleep for a while, nor can it be cancelled.
Not at all. Thanks for your patience.
You've laid out really good arguments as to why Java Threads cannot be cancelled, and suggested that userspace threads -- which I (perhaps mistakenly) interpreted as CompletableFutures -- should be able to be cancelled.
But the thing is, I can cancel (request) Java Threads. And I cannot cancel CompletableFutures.
From my original comment:
> But CFs lack the functionality of Threads. A CF can't decide to sleep for a while, nor can it be cancelled.