Portability | non-portable |
---|---|
Stability | experimental |
Maintainer | toralf.wittner@gmail.com |
Documentation
module System.Linux.Epoll.Base
dispatchLoop :: Duration -> (Event a -> IO ()) -> Device -> IO ()Source
Repeatedly waits for epoll events and invokes the given callback function with each event occured.
defaultDispatchLoop :: (Event a -> IO ()) -> Device -> IO ()Source
Like dispatchLoop
but uses a default Duration
of 500ms.