Skip to navigation

patterns.Semaphore

View as MarkdownOpen in Claude

A bounded concurrency token. Created by patterns.semaphore().

Members

capacity

patterns.Semaphore.capacityint

The semaphore capacity.

release

patterns.Semaphore.release()

Return a token to the semaphore.