...

Package semaphore

import "github.com/hyperledger/fabric/common/semaphore"
Overview
Index

Overview ▾

type Semaphore

type Semaphore chan struct{}

func New

func New(count int) Semaphore

func (Semaphore) Acquire

func (s Semaphore) Acquire(ctx context.Context) error

func (Semaphore) Release

func (s Semaphore) Release()