1
0
mirror of https://github.com/gogf/gf.git synced 2025-04-05 11:18:50 +08:00
This commit is contained in:
Tallone 2024-02-27 21:09:43 +08:00 committed by GitHub
parent 8b156e25c4
commit 39a88ef650
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ type Pool struct {
closed *gtype.Bool // Whether the pool is closed.
TTL time.Duration // Time To Live for pool items.
NewFunc func() (interface{}, error) // Callback function to create pool item.
// ExpireFunc is the for expired items destruction.
// ExpireFunc is the function for expired items destruction.
// This function needs to be defined when the pool items
// need to perform additional destruction operations.
// Eg: net.Conn, os.File, etc.