Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Simple ¶
type Simple struct {
// contains filtered or unexported fields
}
Simple provides a way to bound concurrent access to a resource. It only allows one caller to gain access at a time.
func (*Simple) Acquire ¶
Acquire acquires the semaphore, blocking until resources are available. Returns nil if acquire was successful or ctx.Err if the context was cancelled in the meantime.
Click to show internal directories.
Click to hide internal directories.