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