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 ¶ added in v0.4.6
Types ¶
type ConditionChannel ¶ added in v0.4.9
type ConditionChannel struct { C chan struct{} // output channel // contains filtered or unexported fields }
func NewConditionChannel ¶ added in v0.4.9
func NewConditionChannel() *ConditionChannel
func (*ConditionChannel) Close ¶ added in v0.4.9
func (c *ConditionChannel) Close()
func (*ConditionChannel) Signal ¶ added in v0.4.9
func (c *ConditionChannel) Signal()
Click to show internal directories.
Click to hide internal directories.