Versions in this module Expand all Collapse all v2 v2.0.0 Aug 10, 2022 Changes in this version + type Semaphore struct + func NewSemaphore(value int) *Semaphore + func (s *Semaphore) Acquire() *SemaphoreResource + func (s *Semaphore) TimedAcquire(duration time.Duration) (sr *SemaphoreResource) + func (s *Semaphore) TryAcquire() (sr *SemaphoreResource) + type SemaphoreResource struct + func (sr *SemaphoreResource) Release() Other modules containing this package github.com/antigloss/go