threadSleep

@JvmStatic
fun threadSleep(duration: Duration)(source)

Helper function for Jvm & Native for blocking the thread for the specified Duration

e.g.

Blocking.threadSleep(50.milliseconds)

Throws

IllegalArgumentException

when Duration is improper

if the calling thread was interrupted