, registerDelay -- :: Int -> IO (TVar Bool)
, threadWaitRead -- :: Int -> IO ()
, threadWaitWrite -- :: Int -> IO ()
, registerDelay -- :: Int -> IO (TVar Bool)
, threadWaitRead -- :: Int -> IO ()
, threadWaitWrite -- :: Int -> IO ()
-- | Block the current thread until data is available to read on the
-- given file descriptor (GHC only).
-- | Block the current thread until data is available to read on the
-- given file descriptor (GHC only).
-- given file descriptor (GHC only).
--
-- This will throw an 'IOError' if the file descriptor was closed
-- given file descriptor (GHC only).
--
-- This will throw an 'IOError' if the file descriptor was closed
-- Any threads that are blocked on the file descriptor via
-- 'threadWaitRead' or 'threadWaitWrite' will be unblocked by having
-- IO exceptions thrown.
-- Any threads that are blocked on the file descriptor via
-- 'threadWaitRead' or 'threadWaitWrite' will be unblocked by having
-- IO exceptions thrown.
-closeFd :: (Fd -> IO ()) -- ^ Low-level action that performs the real close.
- -> Fd -- ^ File descriptor to close.
- -> IO ()
-closeFd close fd
+closeFdWith :: (Fd -> IO ()) -- ^ Low-level action that performs the real close.
+ -> Fd -- ^ File descriptor to close.
+ -> IO ()
+closeFdWith close fd