pool
Version, currently 0.1.01 version
- 0.1.0latestJan 24, 2021
github.com/j8r/pool.cr
A simple thread-safe generic pool.
14 stars
0 dependents
License: ISC
Installation
# Add this to your shard.yml
dependencies:
pool:
github: j8r/pool.cr
version: ~> 0.1.0Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- ISC
- Author
- Julien Reichardt <contact@jrei.ch>
Dependencies
This version declares no dependencies.
README
# Pool.cr
[](https://github.com/j8r/pool.cr/actions?query=workflow%3ACI)
[](https://j8r.github.io/pool.cr)
[](https://en.wikipedia.org/wiki/ISC_license)
A simple thread-safe generic pool.
A pool can be used to store objects that are expensive to create (like connections).
[See here](https://en.wikipedia.org/wiki/Pool_(computer_science)) for more explanations.
## Installation
Add the dependency to your `shard.yml`:
```yaml
dependencies:
pool:
github: j8r/pool.cr
```
## Documentation
https://j8r.github.io/pool.cr
## Usage
```cr
require "pool"
pool = Pool.new { IO::Memory.new }
pool.get do |resource|
# do something
end
```
## License
Copyright (c) 2021 Julien Reichardt - ISC License
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- Jan 24, 2021
- Commit
c5c68b1478af- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/j8r/pool.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1