Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConcurrentLimit ¶
type ConcurrentLimit struct {
// contains filtered or unexported fields
}
func NewConcurrentLimit ¶
func NewConcurrentLimit(total int) *ConcurrentLimit
func (*ConcurrentLimit) Acquire ¶
func (lc *ConcurrentLimit) Acquire(task task.Task, function func(task task.Task))
func (*ConcurrentLimit) Free ¶
func (lc *ConcurrentLimit) Free()
Click to show internal directories.
Click to hide internal directories.