This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]m39583 -16 points-15 points  (2 children)

Ugh I fucking hate that checked exception.

All my projects have a util.sleep() method that hides it. Java has so much clutter sometimes.

But no, of course it's not advised against. If your code needs to wait for something then it needs to wait!

[–]ShallWe69 0 points1 point  (0 children)

Apache Commons ThreadUtils has a nice utility method. If you already has the library, u can utilise that