Package semaphore provides an implementation of counting semaphore primitive with possibility to change limit after creation, based on Compare-and-Swap for faster performance than channel-based implementations.
go get github.com/marusama/semaphore/v2No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a semaphore with limit 3, acquire one slot, then release it.
No known issues recorded.
No dependency data recorded yet.