demon, so I'm doing:
new Thread(new Runnable() {
@Override
public void run() {
//some code
}
}).setDaemon(true)
.start();
But looks like I can't put .setDaemon(true) and .start() like that. How can I do it?
Here if you face the same problem: https://www.decodejava.com/anonymous-thread.htm
Обсуждают сегодня