Extra-1.46.1: A grab bag of modules.

Safe HaskellSafe-Inferred

Extra.Lock

Synopsis

Documentation

withLock :: MonadIO m => FilePath -> m a -> m aSource

awaitLock :: (Num a, Ord a) => a -> Int -> [Char] -> IO b -> IO bSource

Like withLock, but instead of giving up immediately, try n times with a wait between each. awaitLock :: (MonadIO m) => Int -> Int -> FilePath -> m a -> m (Either Exception a)