On Apr 7, 2022, at 08:22, Alessio Stalla alessiostalla@gmail.com wrote:
[…] Java threads already natively have an interrupt flag.
Presumably, the [Thread.State enumeration] is what you are referring to. I have checked that it is present in openjdk{8,11,17}, and not marked as deprecated.
[1]: https://docs.oracle.com/javase/8/docs/api/java/lang/Thread.State.html