Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
createPool :: MonadUnliftIO m => m a -> (a -> m ()) -> Int -> NominalDiffTime -> Int -> m (Pool a) Source #
withResource :: MonadUnliftIO m => Pool a -> (a -> m b) -> m b Source #
takeResource :: MonadUnliftIO m => Pool a -> m (a, LocalPool a) Source #
tryWithResource :: MonadUnliftIO m => Pool a -> (a -> m b) -> m (Maybe b) Source #
tryTakeResource :: MonadUnliftIO m => Pool a -> m (Maybe (a, LocalPool a)) Source #
destroyResource :: MonadUnliftIO m => Pool a -> LocalPool a -> a -> m () Source #
putResource :: MonadUnliftIO m => LocalPool a -> a -> m () Source #
destroyAllResources :: MonadUnliftIO m => Pool a -> m () Source #