func ReadFromBeanstalkd(config beans.Config, waitGroup sync.WaitGroup, jobs chan<- interface{}) { go func() { defer waitGroup.Done() beansConn := beans.Dial(config) beansConn.ReadFromBeanstalkd(jobs) }() }
func WriteToBeanstalkd(config beans.Config, waitGroup sync.WaitGroup, jobs <-chan interface{}) { go func() { defer waitGroup.Done() beansConn := beans.Dial(config) beansConn.WriteToBeanstalkd(jobs) }() }