select-0.1: Give the select(2) POSIX function a simple STM interface
System.Posix.IO.Select.MVar
Description
Treat the POSIX select(2) function as an MVar CInt.
select(2)
MVar
CInt
Synopsis
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.
select
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.
Never
Time s us
Time
s
us
Constructors