monad-extras-0.3.2.0: Extra utility functions for working with monads

Safe HaskellSafe-Inferred

Control.Concurrent.Delay

Description

Delay the current thread with an unbound number of milliseconds.

Synopsis

Documentation

delayMicrosecs :: Integer -> IO ()Source

Suspends the current thread for a given number of microseconds.

There is no guarantee that the thread will be rescheduled promptly when the delay has expired, but the thread will never continue to run earlier than specified.

delayMillisecs :: Integer -> IO ()Source

Delay the current thread for at least n milliseconds.

delaySeconds :: Integer -> IO ()Source

Delay the current thread for at least n seconds.

delayMinutes :: Integer -> IO ()Source

Delay the current thread for at least n minutes.

delayHours :: Integer -> IO ()Source

Delay the current thread for at least n hours.

delayDays :: Integer -> IO ()Source

Delay the current thread for at least n days.