hWaitForInput and timeouts

Peter Simons simons at cryp.to
Sun Oct 3 14:33:38 EDT 2004


I have another I/O problem. I need to time out when a Handle
blocks forever. I am using hWaitForInput anyway, so that
shouldn't be a problem, but the documentation says that
using this feature will block all IO threads? Is it much
work to fix this? I _could_ forkIO a racer thread myself, of
course, but it feels wrong to do that around a function that
has an explicit timeout argument. :-)


More information about the Glasgow-haskell-users mailing list