mirror of
https://github.com/Minestom/Minestom.git
synced 2025-03-13 07:09:51 +01:00
Give a name to the tick scheduler thread
This commit is contained in:
parent
95eddf47de
commit
510f8d7733
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user