Versions in this module Expand all Collapse all v0 v0.5.0 Dec 5, 2022 v0.4.3 Dec 5, 2022 Changes in this version + type Semaphore struct + func NewSemaphore(tickets int) *Semaphore + func (s *Semaphore) Acquire() + func (s *Semaphore) Release() + func (s *Semaphore) Wait()