Documentation ¶
Overview ¶
Package sem provides safe concurrent access to a bounded pool of resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool provides concurrent access to a fixed bounded pool of resources
func NewPool ¶
func NewPool(items ...interface{}) *Pool
NewPool builds a pool providing concurrent access to the given items.
Click to show internal directories.
Click to hide internal directories.