Versions in this module Expand all Collapse all v1 v1.1.0 Jul 24, 2021 v1.0.0 May 10, 2021 Changes in this version + type Semaphore chan struct + func NewSemaphore(N int) Semaphore + func (s Semaphore) Lock() + func (s Semaphore) P(n int) + func (s Semaphore) Signal() + func (s Semaphore) Unlock() + func (s Semaphore) V(n int) + func (s Semaphore) Wait(n int)