resource-pool

A high-performance striped resource pooling implementation

LTS Haskell 23.1:0.4.0.0
Stackage Nightly 2024-12-27:0.4.0.0
Latest on Hackage:0.4.0.0

See all snapshots resource-pool appears in

BSD-3-Clause licensed by Andrzej Rybczak, Bryan O'Sullivan
Maintained by [email protected]
This version can be pinned in stack with:resource-pool-0.4.0.0@sha256:9c1e448a159875e21a7e68697feee2b61a4e584720974fa465a2fa1bc0776c73,1342

Module documentation for 0.4.0.0

resource-pool

Build Status Hackage Dependencies Stackage LTS Stackage Nightly

A high-performance striped resource pooling implementation for Haskell based on QSem.

Changes

resource-pool-0.4.0.0 (2023-01-16)

  • Require poolMaxResources to be not smaller than the number of stripes.
  • Add support for setting the number of stripes.
  • Hide the constructor of PoolConfig from the public API and provide defaultPoolConfig so that future additions to PoolConfig don’t require major version bumps.

resource-pool-0.3.1.0 (2022-06-15)

  • Add tryWithResource and tryTakeResource.

resource-pool-0.3.0.0 (2022-06-01)

  • Rewrite based on Control.Concurrent.QSem for better throughput and latency.
  • Make release of resources asynchronous exceptions safe.
  • Remove dependency on monad-control.
  • Expose the .Internal module.
  • Add support for introspection.
  • Add PoolConfig.