Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BatchParallel ¶
func BatchParallel(nJobs, nWorkers, batchSize int, worker func(workerId, beginJobId, endJobId int) error) error
BatchParallel run parallel jobs in batches to reduce the cost of context switch.
func DynamicParallel ¶
Types ¶
type ConditionChannel ¶
type ConditionChannel struct { C chan struct{} // output channel // contains filtered or unexported fields }
func NewConditionChannel ¶
func NewConditionChannel() *ConditionChannel
func (*ConditionChannel) Close ¶
func (c *ConditionChannel) Close()
func (*ConditionChannel) Signal ¶
func (c *ConditionChannel) Signal()
Click to show internal directories.
Click to hide internal directories.