Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SemaphoreOption ¶
type SemaphoreOption func(*SemaphoreOptions)
func WithConcurrency ¶
func WithConcurrency(n int) SemaphoreOption
type SemaphoreOptions ¶
type SemaphoreOptions struct {
Concurrency int
}
func ApplySemaphoreOptions ¶
func ApplySemaphoreOptions(opts *SemaphoreOptions, modifiers ...SemaphoreOption) SemaphoreOptions
Click to show internal directories.
Click to hide internal directories.