How can I watch multiple files/socket to become readable/writable in Haskell? -


how watch several files/sockets haskell , wait become readable/writable?

is there select/epoll/... in haskell? or forced spawn 1 thread per file/socket , use blocking resource within thread?

the question wrong: aren't forced spawn 1 thread per file/socket , use blocking calls, get spawn 1 thread per file/socket , use blocking calls. cleanest solution (in language); reason avoid in other languages it's bit inefficient there. ghc's threads cheap enough, however, not inefficient in haskell. (additionally, behind scenes, ghc's io manager uses epoll-alike wake threads appropriate.)


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -