Skip to main content

function

sleep

sleep(sec: SIMD[float64, 1])

Suspends the current thread for the seconds specified.

Args:

  • sec (SIMD[float64, 1]): The number of seconds to sleep for.

sleep(sec: Int)

Suspends the current thread for the seconds specified.

Args:

  • sec (Int): The number of seconds to sleep for.