2026-03-14 21:55:50 +01:00
|
|
|
# pool
|
|
|
|
|
|
|
|
|
|
The pool module provides a resource pool implementation that is safe to access from multiple goroutines.
|
|
|
|
|
|
|
|
|
|
It supports:
|
|
|
|
|
|
2026-03-14 22:18:44 +01:00
|
|
|
- finalizing the items when shrinking the pool
|
2026-03-14 21:55:50 +01:00
|
|
|
- monitoring the pool usage and state with events and statistics
|
|
|
|
|
- max idle size and timeout based shrinking algorithms
|
2026-03-14 22:18:44 +01:00
|
|
|
- a zero-config adaptive algorithm that automatically follows changing resource usage characteristics
|
2026-03-15 18:03:27 +01:00
|
|
|
- custom algorithm implementations
|
2026-03-14 21:55:50 +01:00
|
|
|
|
|
|
|
|
Find the documentation here:
|
|
|
|
|
|
|
|
|
|
- [lib.go](lib.go)
|
2026-03-14 22:01:26 +01:00
|
|
|
- https://godocs.io/code.squareroundforest.org/arpio/pool
|
2026-03-14 21:55:50 +01:00
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
*Made in Berlin, DE*
|