Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Semaphore ¶
type Semaphore chan struct{}
Semaphore can be used to limit concurrent executions. This can be used to work with resources with low quotas
func InitializeSemaphore ¶
InitializeSemaphore initializes a semaphore with a default capacity or overrides it using an environment variable NOTE: this is currently an experimental feature and is likely to change. DO NOT USE.
Click to show internal directories.
Click to hide internal directories.