GHC.Event.TimeOut (original) (raw)
Description
Common Timer definitions shared between WinIO and RIO.
Synopsis
- type TimeoutQueue = PSQ TimeoutCallback
- type TimeoutCallback = IO ()
- type TimeoutEdit = TimeoutQueue -> TimeoutQueue
- newtype TimeoutKey = TK Unique
Documentation
type TimeoutCallback = IO () Source #
Warning: since the [TimeoutCallback](GHC-Event-TimeOut.html#t:TimeoutCallback "GHC.Event.TimeOut") is called from the I/O manager, it must not throw an exception or block for a long period of time. In particular, be wary of [throwTo](Control-Exception.html#v:throwTo "Control.Exception") and [killThread](Control-Concurrent.html#v:killThread "Control.Concurrent"): if the target thread is making a foreign call, these functions will block until the call completes.
A timeout registration cookie.
Instances
Instances details