Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Concurrent ¶ added in v0.5.0
type Concurrent struct {
// contains filtered or unexported fields
}
func NewConcurrent ¶
func NewConcurrent(max int) *Concurrent
func (*Concurrent) Run ¶ added in v0.5.0
func (c *Concurrent) Run(fn func())
Run runs a function in a goroutine, but limits the amount goroutines running at the same time. Warning: Please pay attention to the scope of variables in the function.
Click to show internal directories.
Click to hide internal directories.