GHC.Event.TimeOut (original) (raw)

Description

Common Timer definitions shared between WinIO and RIO.

Synopsis

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.

newtype TimeoutKey Source #

A timeout registration cookie.

Instances

Instances details