Nonblocking IO (was: Binary IO)

Peter Simons simons at
Mon Apr 25 05:51:21 EDT 2005

Simon Marlow writes:

 >> hPutBufNonBlocking :: Handle -> Ptr a -> Int -> IO Int
 >> hGetBufNonBlocking :: Handle -> Ptr a -> Int -> IO Int

 > I believe they don't have proper non-blocking behaviour
 > on Windows, though.

What exactly would happen when I'd try to use those on
Windows? Would they block until they had read/written
exactly 'Int' bytes? Or is there some other, more subtle


More information about the Libraries mailing list