Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
acquire :: Int -> NominalDiffTime -> Settings -> IO Pool Source
Given the pool-size, timeout and connection settings create a connection-pool.
use :: Pool -> (Connection -> IO a) -> IO (Either ConnectionError a) Source
Use a connection from the pool and return it to the pool, when finished. Exception-safe.