Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
type Milliseconds = Int Source
A handle to a scheduled timer.
NOTE: This keeps a weak reference to the thread containing the timer, to allow it to still receive exceptions (see mkWeakThreadId).
delay :: Milliseconds -> IO () -> IO Timer Source
Delay an action, giving back a handle to allow the timer to be cancelled.
delay_ :: Milliseconds -> IO () -> IO () Source
Delay an action.