Add LoggingThread#getState method

This commit is contained in:
JeremyStar™ 2024-09-05 00:47:12 +02:00
parent c9bf6126a0
commit 770c9b5c6e
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -131,4 +131,15 @@ public class LoggingThread {
} else } else
loggingThread.start(); loggingThread.start();
} }
/**
* Returns the {@link Thread.State} of the logging thread.
*
* @return logging thread state
* @since v1-alpha4
* @see Thread.State
*/
public static @NotNull Thread.State getState() {
return loggingThread.getState();
}
} }