hans-2.4.0.0: IPv4 Network Stack

Safe HaskellNone
LanguageHaskell98

Hans.Timers

Synopsis

Documentation

data Timer 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.

cancel :: Timer -> IO () Source

Cancel a delayed action.