Son Christmas Posted May 22, 2020 Posted May 22, 2020 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
D9BLADEE Posted May 22, 2020 Posted May 22, 2020 Have you made your method containing the static sleep throw an InterruptedException? For eg: private void letsSleep() throws InterruptedException { sleep(500); } 1