improve the documentation for throwErrnoIfRetry
authorSimon Marlow <marlowsd@gmail.com>
Fri, 16 Oct 2009 11:24:04 +0000 (11:24 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Fri, 16 Oct 2009 11:24:04 +0000 (11:24 +0000)
Foreign/C/Error.hs

index d2e6f64..55358eb 100644 (file)
@@ -358,8 +358,9 @@ throwErrnoIfRetry pred loc f  =
           else throwErrno loc
       else return res
 
--- | as 'throwErrnoIfRetry', but checks for operations that would block and
--- executes an alternative action before retrying in that case.
+-- | as 'throwErrnoIfRetry', but additionlly if the operation 
+-- yields the error code 'eAGAIN' or 'eWOULDBLOCK', an alternative
+-- action is executed before retrying.
 --
 throwErrnoIfRetryMayBlock
                 :: (a -> Bool)  -- ^ predicate to apply to the result value