Extra-1.33: A grab bag of modules.
Extra.Lock
Synopsis
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.