projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd40686
)
improve the documentation for throwErrnoIfRetry
author
Simon Marlow
<marlowsd@gmail.com>
Fri, 16 Oct 2009 11:24:04 +0000
(11:24 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Fri, 16 Oct 2009 11:24:04 +0000
(11:24 +0000)
Foreign/C/Error.hs
patch
|
blob
|
history
diff --git
a/Foreign/C/Error.hs
b/Foreign/C/Error.hs
index
d2e6f64
..
55358eb
100644
(file)
--- a/
Foreign/C/Error.hs
+++ b/
Foreign/C/Error.hs
@@
-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