
31 Mar
2006
31 Mar
'06
5:29 p.m.
On 3/31/06, John Meacham
- I wouldn't include threadWaitRead, threadWaitWrite, or threadDelay at all. These can all be implemented using FFI, so don't belong in the concurrency library. Their presence is largely historical.
They all have special implementations on a 'epoll' based system. threadDelay turns into the timeout parameter to select, waitread/write turn into the basic building blocks of your epoll wait-list. We definitly want these in the interface as primitves.
And they're all a pain because they don't take sets of files, only
single ones. Can we please have something like:
threadWait :: Timeout -> [Handle] -> IO ?
--
Taral