PROPOSAL(S): threadWaitError and threadWaitErrorSTM

Merijn Verstraaten merijn at inconsistent.nl
Sun Mar 16 14:25:15 UTC 2014


Hola!

Control.Concurrent currently has:

threadWaitRead :: Fd -> IO ()
threadWaitWrite :: Fd -> IO ()
threadWaitReadSTM :: Fd -> IO (STM (), IO ())
threadWaitWriteSTM :: Fd -> IO (STM (), IO ())

(btw, whoever added the STM versions, I <3 you)

I would like to propose adding:

threadWaitError :: Fd -> IO ()
threadWaitErrorSTM :: Fd -> IO (STM (), IO ())

to allow for blocking on detecting error condition on file descriptors, similar to what C's select() allows.

Cheers,
Merijn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.haskell.org/pipermail/libraries/attachments/20140316/d5807663/attachment.sig>


More information about the Libraries mailing list