Mojo function
sleep
sleep(sec: Float64)
Suspends the current thread for the seconds specified.
Args:
- sec (
Float64): The number of seconds to sleep for. Values <= 0 return immediately.
sleep(sec: Scalar[DType.uint])
Suspends the current thread for the seconds specified.
Args:
- sec (
Scalar): The number of seconds to sleep for.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!