sleep sleep -package:unix-compat
Warning: This function has several shortcomings (see
documentation). Please consider using Control.Concurrent.threadDelay
instead.
Sleep for a number of seconds.
fmap (round . fst) (duration $ sleep 1) == pure 1
Sleep for the given duration
A numeric literal argument is interpreted as seconds. In other words,
(sleep 2.0) will sleep for two seconds.
blocks the calling Process for the specified TimeInterval. Note that
this function assumes that a blocking receive is the most efficient
approach to acheiving this, however the runtime semantics
(particularly with regards scheduling) should not differ from
threadDelay in practise.
Temporarily suspends computation for the specified duration.
Sleep time in milliseconds
Sleep the current thread. This is usually only used in example
programs. It's probably safer to use the built-in
threadDelay.
Not on Stackage, so not searched.
zZzzZz
Temporarily suspends computation for the specified duration.
Sleep current thread for the indicated duration (in seconds). Divides
long sleeps into parts smaller than
pauseThreadLimit.
Sleep current thread until the given time. Divides long sleeps into
parts smaller than
pauseThreadLimit.
Sleeps for t seconds with constant output b.
Literate way of saying sleepFor 3 Seconds.