May 22, 20205 yr If I call the Sleep function inside a method that I create will it work? I keep getting a red underline under it saying: Add a Try / Catch Statement Or add Exception method signature I think the reason one of my scripts has been messing up is because this keeps giving me exceptions
May 22, 20205 yr Have you made your method containing the static sleep throw an InterruptedException? For eg: private void letsSleep() throws InterruptedException { sleep(500); }
Create an account or sign in to comment