Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunConcurrent ¶
func RunConcurrent(limit int, tasks ...func())
func RunParallel ¶
func RunParallel(fs ...func())
Types ¶
type Concurrent ¶
type Concurrent struct {
// contains filtered or unexported fields
}
func NewConcurrent ¶
func NewConcurrent(limit int) *Concurrent
func (*Concurrent) Add ¶
func (c *Concurrent) Add(fs ...func()) *Concurrent
func (*Concurrent) Close ¶
func (c *Concurrent) Close()
func (*Concurrent) Wait ¶
func (c *Concurrent) Wait()
Click to show internal directories.
Click to hide internal directories.