diff options
-rw-r--r-- | libraries/base/GHC/IO/Handle/Lock.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libraries/base/GHC/IO/Handle/Lock.hs b/libraries/base/GHC/IO/Handle/Lock.hs index 18319e1d29..919d680ff7 100644 --- a/libraries/base/GHC/IO/Handle/Lock.hs +++ b/libraries/base/GHC/IO/Handle/Lock.hs @@ -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 |