Give a name to the tick scheduler thread

This commit is contained in:
themode 2021-03-21 15:44:37 +01:00
parent 95eddf47de
commit 510f8d7733

View File

@ -24,7 +24,8 @@ import java.util.function.LongConsumer;
*/
public final class UpdateManager {
private final ScheduledExecutorService updateExecutionService = Executors.newSingleThreadScheduledExecutor();
private final ScheduledExecutorService updateExecutionService = Executors.newSingleThreadScheduledExecutor(r ->
new Thread(r, "tick-scheduler"));
private volatile boolean stopRequested;