sleep

Make the current thread sleep for a given duration.

sleep is the best way to block a program or one of its threads, as it doesn't consume any CPU power.

void
sleep
(
Duration duration
)

Meta