Skip to main content
Log in

Mojo 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: UInt)

Suspends the current thread for the seconds specified.

Args:

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