select-0.2.1: Give the select(2) POSIX function a simple STM interface

Safe HaskellSafe-Infered



Treat the POSIX select(2) function as an MVar CInt.



select :: [Fd] -> [Fd] -> [Fd] -> Timeout -> IO (MVar CInt)Source

This version of select immediately returns and makes the return value of the select(2) call available as an MVar CInt. See select for argument information.

data Timeout Source

A timeout of Never tells select(2) to never time out, while Time s us sets the timeout parameters to s seconds and us microseconds.