From c9a570d40a51e7af771ad66074b445382463aa2f Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Fri, 16 Oct 2009 11:24:04 +0000 Subject: [PATCH] improve the documentation for throwErrnoIfRetry --- Foreign/C/Error.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Foreign/C/Error.hs b/Foreign/C/Error.hs index d2e6f64..55358eb 100644 --- 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 -- 1.7.10.4