Some suggestions about Thread.sleep()
o0lwj0o opened this issue · 1 comments
Hi, I found an interesting case in this project.
It uses “Thread.sleep()” to wait other thread. However, the time to sleep is hard to choose.
I think maybe CountDownLatch.await is helpful.
Detailed website and line:
238 | https://github.com/ForgeEssentials/ForgeEssentials/blob/1.12.2/develop/src/main/java/com/forgeessentials/playerlogger/PlayerLogger.java