- Loading...
...
The early prototype of Project Loom has had basic support for cancellation. Further exploration is needed on this topic but as virtual threads represented are by java.lang.Thread objects it means that they support thread interruption. In addition, if a thread blocked in ExecutorService::close is interrupted then it will attempt to stop all tasks/threads as if by invoking the exector's shutdownNow method. If all tasks are well behaves and terminate quickly when interrupted then it allow the executor to terminate quickly.
...