epoll-0.1.1: Low-level bindings to epoll.

Portabilitynon-portable
Stabilityexperimental
Maintainertoralf.wittner@gmail.com

System.Linux.Epoll

Description

 

Synopsis

Documentation

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.