import "github.com/hyperledger/fabric/common/semaphore"
semaphore.go
type Semaphore chan struct{}
func New(count int) Semaphore
func (s Semaphore) Acquire(ctx context.Context) error
func (s Semaphore) Release()