Код: Выделить всё
Virtual threads are always daemon threads. The Thread.setDaemon(boolean) method cannot change a virtual thread to be a non-daemon thread.Подробнее здесь: https://stackoverflow.com/questions/791 ... -as-daemon
Код: Выделить всё
Virtual threads are always daemon threads. The Thread.setDaemon(boolean) method cannot change a virtual thread to be a non-daemon thread.