Merge branch 'master' into type-nats
[packages/base.git] / GHC / Event.hs
1 {-# LANGUAGE Trustworthy #-}
2 -- | This module provides scalable event notification for file
3 -- descriptors and timeouts.
4 --
5 -- This module should be considered GHC internal.
6 module GHC.Event
7 ( -- * Types
8 EventManager
9
10 -- * Creation
11 , new
12 , getSystemEventManager
13
14 -- * Running
15 , loop
16
17 -- ** Stepwise running
18 , step
19 , shutdown
20
21 -- * Registering interest in I/O events
22 , Event
23 , evtRead
24 , evtWrite
25 , IOCallback
26 , FdKey(keyFd)
27 , registerFd
28 , registerFd_
29 , unregisterFd
30 , unregisterFd_
31 , closeFd
32
33 -- * Registering interest in timeout events
34 , TimeoutCallback
35 , TimeoutKey
36 , registerTimeout
37 , updateTimeout
38 , unregisterTimeout
39 ) where
40
41 import GHC.Event.Manager
42 import GHC.Event.Thread (getSystemEventManager)