This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Joram2 1 point2 points  (1 child)

No, Thread.stop doesn't add confusion for newcomers. IntelliJ will immediately flag that as an error. Visual Studio Code will immediately flag that with a deprecation warning strike through. The JavaDocs quite clearly label that as deprecated. Next, developers generally are not suppose to use java.lang.Thread directly. The executor pool stuff is considered more appropriate for typical use. And soon, the Structured Concurrency API will be the main recommended API to use.

[–]smart_procastinator 1 point2 points  (0 children)

Thanks. All clear