Skip to content
Snippets Groups Projects
Commit 04d64331 authored by syd@cs-syd.eu's avatar syd@cs-syd.eu Committed by Marge Bot
Browse files

Update Lock.hs with more documentation to make sure that the Boolean return value is clear.

[skip ci]
parent 31fea307
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,8 @@ hLock h mode = void $ lockImpl h "hLock" mode True
-- | Non-blocking version of 'hLock'.
--
-- Returns 'True' if taking the lock was successful and 'False' otherwise.
--
-- @since 4.10.0.0
hTryLock :: Handle -> LockMode -> IO Bool
hTryLock h mode = lockImpl h "hTryLock" mode False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment