Documentation
¶
Overview ¶
Package parallel provides a bounded goroutine pool for concurrent API calls.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool runs at most N goroutines concurrently.
func (*Pool) Go ¶
func (p *Pool) Go(fn func())
Go submits fn for execution, blocking until a slot is available.
Click to show internal directories.
Click to hide internal directories.