import "github.com/v2ray/v2ray-core/common/signal/semaphore"
type Instance struct {
// contains filtered or unexported fields
}
Instance is an implementation of semaphore.
New create a new Semaphore with n permits.
Signal releases a permit into the semaphore.
Wait returns a channel for acquiring a permit.
Updated 2018-06-29. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).