2 ms·
One should never expect a thread not to be interrupted. When I see code like the latter in PRs it drives me nuts, to the point that I start building up a case
by coredog64 10y ago
One should never expect a thread not to be interrupted.
When I see code like the latter in PRs it drives me nuts, to the point that I start building up a case to have the knucklehead that does it moved off onto another project.
- wellpast 10y agoWhy should one always expect a thread to be interruptible? If I don't run my thread within an Executor or some other framework that could interrupt my thread, then I should be able to consider that an illegal state.
- BrandonM 10y agoWhen a program is shutting down, its threads are interrupted.