Is there a code to check if a timer is running?
问题 I have a game where I am scheduling a timer. I have this CoresManager file: package com.rs.cores; import java.util.Timer; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; public final class CoresManager { protected static volatile boolean shutdown; public static WorldThread worldThread; public static ExecutorService serverWorkerChannelExecutor; public static ExecutorService serverBossChannelExecutor;