Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = errors.New("Pool is closed")
ErrClosed indicates this pool is already closed.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool is a pool of resources with a given allocator. If the a resource implements Closer, then it Close() will be called when resource is removed from the pool.
Click to show internal directories.
Click to hide internal directories.