github.com/jackc/puddle/v2@v2.2.2-0.20240301145809-72b022bcfc59/doc.go (about)

     1  // Package puddle is a generic resource pool with type-parametrized api.
     2  /*
     3  
     4  Puddle is a tiny generic resource pool library for Go that uses the standard
     5  context library to signal cancellation of acquires. It is designed to contain
     6  the minimum functionality a resource pool needs that cannot be implemented
     7  without concurrency concerns. For example, a database connection pool may use
     8  puddle internally and implement health checks and keep-alive behavior without
     9  needing to implement any concurrent code of its own.
    10  */
    11  package puddle