Extra-1.29: A grab bag of modules.Source codeContentsIndex
Extra.Lock
Synopsis
withLock :: MonadIO m => FilePath -> m a -> m (Either Exception a)
awaitLock :: MonadIO m => Int -> Int -> FilePath -> m a -> m (Either Exception a)
Documentation
withLock :: MonadIO m => FilePath -> m a -> m (Either Exception a)Source
awaitLock :: MonadIO m => Int -> Int -> FilePath -> m a -> m (Either Exception a)Source
Like withLock, but instead of giving up immediately, try n times with a wait between each.
Produced by Haddock version 2.6.0