Documentation ¶
Index ¶
- type Semaphore
- func (s *Semaphore) Acquire(ctx context.Context, n int64) error
- func (s *Semaphore) InitialSize() int64
- func (s *Semaphore) Release(n int64)
- func (s *Semaphore) Resize(ctx context.Context, newSize int64) error
- func (s *Semaphore) Size() int64
- func (s *Semaphore) Vary(ctx context.Context, x int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.